nerdexam
EC-Council

312-50V10 · Question #95

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. Fred wants to simulate an already-established TCP session by sending a packet with the ACK flag set, which signals an ongoing connection rather than a new handshake.

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 his
  • 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

(29 responses)
  • A
    7% (2)
  • B
    14% (4)
  • C
    3% (1)
  • D
    76% (22)

Why each option

Fred wants to simulate an already-established TCP session by sending a packet with the ACK flag set, which signals an ongoing connection rather than a new handshake.

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

The RST flag is used to abruptly terminate an existing connection rather than simulate an established one, and 'SIN' is not a valid TCP flag.

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

A SYN-only packet initiates a new three-way handshake rather than mimicking an already-established session.

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 removes the acknowledgment indicator, making the packet resemble a new connection request rather than established session traffic, and using the switch's own address as source is illogical for this spoofing purpose.

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 present in all packets after the initial SYN to acknowledge received data, indicating a session is already in progress. By sending a packet with the ACK bit set and his own source address, Fred mimics mid-session traffic behavior. This exploits stateless or poorly configured devices that may treat any ACK-flagged packet as belonging to an established connection.

Concept tested: TCP ACK flag session spoofing technique

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

Topics

#TCP ACK#session spoofing#stateful inspection#TCP flags

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice