nerdexam
GIAC

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.

Web Application Penetration Testing

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)
  • A
    75% (41)
  • B
    4% (2)
  • C
    15% (8)
  • D
    7% (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.

APing-n 1 192.168.1 200 on the compromised systemCorrect

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.

BA 'Destination host unreachable' error message on the compromised system

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.

CA packet containing 'Packets: Sent - 1 Received = 1, Loss = 0 (0% loss) on yoursniffer

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.

DAn ICMP Echo packet on your sniffer containing the source address of the target

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

#blind command injection#ICMP#command execution#web application

Community Discussion

No community discussion yet for this question.

Full GPEN Practice