![]() |
Networking - Safety Concern
If I have a program that will download (textual) content based on what a client tells me to download, what kind of safety should I be concerned about?
My biggest concern was first that I shouldn't let them tell me to access anything in the local network. So I should filter out 127.0.0.1 and 192.168.X.X(X). However I've also seen 10.174.X.X(X) used for business networks, and am not exactly sure what else is possible. What's the best way to securely filter out downloading local content? If I manually check the address with something like: :
if url[:7].lower() == 'http://':Can downloading textual content lead to any client-side side-effects? Finally, can malicious code be pushed into urllib2.Request, such as the problem with eval with input? |
Valid local networks IPs are defined in RFC 1918:
:
10.0.0.0 - 10.255.255.255 (10/8 prefix):
:
:
|
Quote:
Quote:
|
Wow thanks! That's some great useful information there! It's funny because I was playing with the socket.gethostbyname, but for all the wrong reasons.
Quote:
Is it possible that they could use that to make me download a virus or potentially harmful data? |
Quote:
|
| All times are GMT -5. The time now is 2:09 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC