nerdexam
EC-Council

312-50V9 · Question #601

Fred is the network administrator for his company. Fred is testing an internal switch. From an external IP address, Fred wants to try and trick this switch into thinking it already has established a…

The correct answer is D. Fred can send an IP packet to the switch with the ACK bit and the source address of his machine. This question tests understanding of TCP session spoofing, specifically how setting the ACK flag mimics an already-established TCP connection to deceive a network device.

Session Hijacking

Question

Fred is the network administrator for his company. Fred is testing an internal switch. From an external IP address, Fred wants to try and trick this switch into thinking it already has established a session with his computer. How can Fred accomplish this?

Options

  • AFred can accomplish this by sending an IP packet with the RST/SIN bit and the source address of
  • BHe can send an IP packet with the SYN bit and the source address of his computer.
  • CFred can send an IP packet with the ACK bit set to zero and the source address of the switch.
  • DFred can send an IP packet to the switch with the ACK bit and the source address of his machine.

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    10% (2)
  • C
    5% (1)
  • D
    81% (17)

Why each option

This question tests understanding of TCP session spoofing, specifically how setting the ACK flag mimics an already-established TCP connection to deceive a network device.

AFred can accomplish this by sending an IP packet with the RST/SIN bit and the source address of

A packet with both RST and SYN bits set is invalid in TCP - RST resets/tears down a connection while SYN initiates one; this combination is used in some OS fingerprinting scans but does not simulate an established session.

BHe can send an IP packet with the SYN bit and the source address of his computer.

A packet with only the SYN bit set initiates a brand new TCP connection request (the first step of the three-way handshake), which explicitly signals this is a new connection, not an established one.

CFred can send an IP packet with the ACK bit set to zero and the source address of the switch.

Setting the ACK bit to zero on a packet to the switch would signal a SYN (new connection initiation) rather than an established session, and using the switch's own source address does not make logical sense for spoofing an external session.

DFred can send an IP packet to the switch with the ACK bit and the source address of his machine.Correct

In TCP, the ACK flag is set on all packets after the initial SYN that starts the three-way handshake - meaning ACK is present in every packet of an established session. By sending a packet with the ACK bit set and using his own source address, Fred makes the switch believe it is receiving a continuation packet from an already-established session, which is the basis of TCP session spoofing and blind session hijacking techniques. The switch, seeing a packet with ACK set, may process it as belonging to an existing connection rather than a new unauthenticated request.

Concept tested: TCP ACK flag spoofing to simulate established sessions

Source: https://www.rfc-editor.org/rfc/rfc793

Topics

#TCP ACK#session spoofing#IP spoofing#TCP handshake

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice