Application Security Concerns: How easy is it to fake an IP-Address?

后端 未结 2 1831
春和景丽
春和景丽 2020-12-19 17:43

I am dealing with an application that is protected by a firewall and only allows access from certain IP-Addresses (which are application webservers).

Its a bit delic

2条回答
  •  时光说笑
    2020-12-19 18:33

    Now I am quite sure that IP addresses ARE inspected and filtered when passing a router.

    This assumption is incorrect, despite your level of sureness. "Egress filtering", which is the name of this, is generally not done.

    The major protection against widespread spoofing of IP addresses is that the attacker would not recieve any response packets - they would all be routed back to the host that is legitmately using the IP address being spoofed. This kind of attack is known as "blind spoofing", because the attacker is working blind.

    In order to send data on a TCP connection, you must be able to finish the TCP "three-way handshake". This requires knowing the initial sequence number used by the opposite end - and since TCP initial sequence numbers are chosen reasonably randomly1, this prevents a blind spoofing attack from being able to do this. (Note also that this does not apply to UDP - without some kind of application layer preventative, UDP is at significant risk from blind spoofing).

    If the attacker can see the replies coming back (say, because he is sniffing the uplink or the local network of your server), then this also doesn't apply - spoofing TCP connections in this case is not just possible but trivial.


    1. These days, anyway - this wasn't always the case.

提交回复
热议问题