GPEN · Question #434
You successfully compromise a target system's web application using blind command injection. The command you injected is ping-n 1 192.168.1.200. Assuming your machine is 192.168.1 200, which of the…
The correct answer is A. Ping-n 1 192.168.1 200 on the compromised system. Blind command injection causes the injected command to execute on the compromised server with no output returned to the attacker's browser.
Question
You successfully compromise a target system's web application using blind command injection. The command you injected is ping-n 1 192.168.1.200. Assuming your machine is 192.168.1 200, which of the following would you see?
Options
- APing-n 1 192.168.1 200 on the compromised system
- BA 'Destination host unreachable' error message on the compromised system
- CA packet containing 'Packets: Sent - 1 Received = 1, Loss = 0 (0% loss) on yoursniffer
- DAn ICMP Echo packet on your sniffer containing the source address of the target
How the community answered
(55 responses)- A75% (41)
- B4% (2)
- C15% (8)
- D7% (4)
Why each option
Blind command injection causes the injected command to execute on the compromised server with no output returned to the attacker's browser.
In blind command injection, the web application executes the injected command server-side but does not return the command's output in the HTTP response. The ping command runs on the compromised host, which is exactly what option A describes - the command executes on the target system. The attacker receives no in-band confirmation and must rely on out-of-band channels such as a packet sniffer to detect the resulting ICMP traffic.
A 'Destination host unreachable' error indicates a routing failure to the destination; since 192.168.1.200 is the attacker's own reachable machine, this error would not occur.
The ping statistics text 'Packets: Sent = 1, Received = 1' is console output generated on the compromised system, not a network packet that would appear on a sniffer.
While the ICMP Echo Request would arrive at the attacker's machine and could be captured, this option partially describes out-of-band detection rather than the primary behavior of blind injection, which is execution on the compromised host.
Concept tested: Blind command injection server-side execution behavior
Source: https://owasp.org/www-community/attacks/Blind_command_injection
Topics
Community Discussion
No community discussion yet for this question.