amylee wrote: ip's and browsers can easily be spoofed
amylee wrote: ip's and browsers can easily be spoofed
browser.. yes ip.. no
Its a common misconception that ip spoofing is possible in all situations, in fact in most applications it is impossible, tcp/ip works via a 3 way handshake, this is for a number of reasons not really a security a feature but it is via byproduct just that.
1: Machine A says "hi" to machine B 2. Machine B responds "hi" to machine A 3. Machine A responds "OK im still here, show me the data!" to machine B
Spoof your ip to another IP and you essentially put a new machine into the context
1: Machine A says "hi" to machine B 2. Machine B responds "hi" to machine C 3. Machine A gets nothing, machine B closes connection as its no longer valid, machine C is like WTF!
There are 2 ways of doing ip spoofing, the first is blind spoofing, this is where you establish a connection by pretending to recieve the reply
1: Machine A says "hi" to machine B 2. Machine B responds "hi" to machine C 3. Machine A waits for a second so it knows machine B has sent out its reply and then says "OK im still here, show me the data!" to machine B
This means all data is passed to machine C from machine B, machine A can send data but cant recieve it, in most applications such a thing would be useless. In fact only very few applications do apply for this method (non of which apply to anything anyone here will probably come across in their development career)
The second way is by packet sniffing machine C during the blind spoof, to do this you need to be on some sort of network with the machine IP your spoofing. So if your VERY good and the machine IP your spoofing is in the same street as you AND your both on cable ISP you can hack over the network made by the cable internet infrastruture. This method basically allows you to see the data being sent from machine B as it goes to Machine C so you can respond accordingly. This is even more unlikely to even be attempted than the previous blind spoofing method.
All in all spoofing your IP isnt as easy as people may think (i used to think it was easy too tbh). and im 99.99999% sure no one is gonna care THAT much about a wapsite, if they can spoof ip's and sniff packets then they'd more likely be looking for their nieghbours bank details or paypal password than trying to login to their neighbours wapsite account
HOWEVER, i do agree with amy that an IP should never be relied on for authentication, or atleast not sole authentication (in this instance it becomes sole authentication as i said browsers can be spoofed very easily, in fact firefox has a certified plugin extension for browser spoofing)
as for morses response.. if you can spoof an IP then it being moroccan or iranian wouldnt make a little bit of a difference
ksg91: if you mean use the existence of cookies for seeing if they are logged in then thats even worse, cookies are a plaintext file and can be written easily in notepad by any n00b. always use a one way hashing algorithm to hide plaintext stuff that u use for session auth and always use a number of things to valid a user, this should include as many non user accessible things as possible (i.e. using a subdomain for login and authentication and you CAN use the IP as one way of validating the user session since its so hard to spoof, but dont rely on the IP solely, you never know what the real user is running (maybe they run a proxy without even knowing it))