PT0-002 · Question #44
Which of the following should a penetration tester attack to gain control of the state in the HTTP protocol after the user is logged in?
The correct answer is D. Sessions and cookies. To gain control of the HTTP protocol's state after a user logs in, a penetration tester should target sessions and cookies, as these mechanisms manage authenticated user states.
Question
Which of the following should a penetration tester attack to gain control of the state in the HTTP protocol after the user is logged in?
Options
- AHTTPS communication
- BPublic and private keys
- CPassword encryption
- DSessions and cookies
How the community answered
(38 responses)- A3% (1)
- B5% (2)
- C3% (1)
- D89% (34)
Why each option
To gain control of the HTTP protocol's state after a user logs in, a penetration tester should target sessions and cookies, as these mechanisms manage authenticated user states.
HTTPS communication protects the confidentiality and integrity of data in transit, but attacking it typically involves decrypting traffic, not directly controlling the state of an already logged-in user in the application layer.
Public and private keys are used for encryption and digital signatures, particularly in SSL/TLS, which secures the communication channel, not the application-level session state.
Password encryption protects user credentials during storage or transmission. Once a user is logged in, their session state is managed independently of the initial password encryption.
After a user logs in, HTTP, being a stateless protocol, relies on mechanisms like sessions and cookies to maintain the user's authenticated state across requests. By compromising session tokens or cookies, a penetration tester can hijack a user's session and gain unauthorized access to their authenticated account without needing their credentials.
Concept tested: HTTP session management exploitation
Source: https://owasp.org/www-project-web-security-testing-guide/v41/4-Authentication_Management/
Topics
Community Discussion
No community discussion yet for this question.