nerdexam
GIAC

GCIH · Question #208

In which of the following attacks does an attacker use packet sniffing to read network traffic between two parties to steal the session cookie?

The correct answer is C. Session sidejacking. Session sidejacking is the attack in which an adversary uses a packet sniffer to capture an unencrypted session cookie from network traffic and reuses it to impersonate the authenticated victim.

Web Application Attacks & Post-Exploitation

Question

In which of the following attacks does an attacker use packet sniffing to read network traffic between two parties to steal the session cookie?

Options

  • ASession fixation
  • BCross-site scripting
  • CSession sidejacking
  • DARP spoofing

How the community answered

(25 responses)
  • B
    4% (1)
  • C
    88% (22)
  • D
    8% (2)

Why each option

Session sidejacking is the attack in which an adversary uses a packet sniffer to capture an unencrypted session cookie from network traffic and reuses it to impersonate the authenticated victim.

ASession fixation

Session fixation forces a victim to authenticate using a session ID that the attacker already controls and knows in advance, rather than passively sniffing the network to steal an existing authenticated token.

BCross-site scripting

Cross-site scripting (XSS) injects malicious client-side scripts into web pages viewed by other users and while it can steal cookies via JavaScript, it does not involve packet sniffing of network traffic.

CSession sidejackingCorrect

Session sidejacking - also called cookie hijacking - involves intercepting a valid session token transmitted over an unencrypted channel such as plain HTTP using a passive packet sniffer. The attacker injects the stolen cookie into their own browser to assume the victim's authenticated session without ever needing the user's credentials.

DARP spoofing

ARP spoofing poisons ARP caches to redirect traffic through the attacker's machine and can serve as a setup for sniffing, but it is itself a network-layer redirection attack - not the act of reading traffic to steal a session cookie.

Concept tested: Session sidejacking via network packet sniffing

Source: https://owasp.org/www-community/attacks/Session_hijacking_attack

Topics

#session sidejacking#cookie theft#packet sniffing#session hijacking

Community Discussion

No community discussion yet for this question.

Full GCIH Practice