Ip Spoofing Credential Harvesting The Office Edition
An attacker on the same local network spoofs the web server's IP address to redirect employee traffic to a cloned login page, harvesting credentials in plain text. The attack relies on DHCP not detecting the IP conflict and the victim not noticing the lack of HTTPS.
Published on systemweakness.com
According to Kaspersky, IP spoofing, or IP address spoofing, refers to the creation of Internet Protocol (IP) packets with a false source IP address to impersonate another computer system.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the DHCP server does not detect or prevent IP address conflicts, allowing an attacker to statically assign the same IP as the legitimate server and receive traffic intended for it.
Impact
An attacker on the same local network could capture employee credentials in plain text, but the attack requires the victim to ignore the browser's insecure connection warning and only works until the IP conflict is resolved.
What the attacker needed
Access to the local network; victim visits the server's IP address; victim ignores HTTPS warning
The fix
The network should use DHCP snooping and IP source guard to prevent IP address spoofing, and services should use HTTPS to protect credentials.
How it was found
- The attacker scans the local network to find the web server.
- The attacker clones the web server's login page using httrack.
- The attacker modifies the cloned page so that submitted credentials are sent to a listener on the attacker's machine.
- The attacker hosts the cloned page on port 80 and starts a netcat listener on port 8080.
- The attacker statically sets their IP address to match the web server's IP and resets their network connection.
- The victim visits the web server's address and submits credentials, which are captured by the attacker.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a demonstration of a local network attack where someone on the same Wi-Fi or office network pretends to be the web server by using its IP address. When an employee tries to visit the real server, they actually reach the attacker's fake copy of the login page. The fake page sends the username and password to the attacker instead of the real server.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.