nerdexam
CompTIA

PT0-002 · Question #578

A penetration tester team is looking for the best way to steal an active session cookie that is managed on an unprotected JavaScript variable on the client side. Which of the following is the best…

The correct answer is A. BeEF. BeEF (Browser Exploitation Framework) is specifically designed for exploiting vulnerabilities in web browsers. It can be used to steal active session cookies by injecting malicious JavaScript code into a client-side application or by leveraging an XSS (Cross-Site Scripting)…

Attacks and Exploits

Question

A penetration tester team is looking for the best way to steal an active session cookie that is managed on an unprotected JavaScript variable on the client side. Which of the following is the best tool to use for this task?

Options

  • ABeEF
  • BBurp Suite
  • CGobuster
  • DSET

How the community answered

(29 responses)
  • A
    83% (24)
  • B
    3% (1)
  • C
    10% (3)
  • D
    3% (1)

Explanation

BeEF (Browser Exploitation Framework) is specifically designed for exploiting vulnerabilities in web browsers. It can be used to steal active session cookies by injecting malicious JavaScript code into a client-side application or by leveraging an XSS (Cross-Site Scripting) vulnerability. Since the session cookie is stored in an unprotected JavaScript variable, BeEF is an ideal tool to target and extract this information.

Topics

#BeEF#Client-side exploitation#Session hijacking#Cross-Site Scripting (XSS)

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice