Hack Your Way to Success: 2025 Ethical Hacking Essentials Challenge – Level Up Your Skills!

Question: 1 / 640

Which of the following is a recommended countermeasure against session hijacking?

Disable cookies

Use HPKP to allow users to authenticate web servers

Using HTTP Public Key Pinning (HPKP) is a recommended countermeasure against session hijacking because it helps ensure that users are connecting to the legitimate web server. HPKP enables a website to specify which public keys are authorized to be used in the service by the client, helping to prevent man-in-the-middle attacks that could enable session hijacking. By enforcing the use of specific public keys, clients can avoid interacting with malicious servers that may attempt to impersonate a legitimate service.

On the other hand, disabling cookies is not a practical solution because many web applications rely on cookies for maintaining user sessions securely. Limiting network access to administrators focuses more on access control rather than specifically addressing the vulnerabilities that allow session hijacking to occur. Encrypting all network traffic is important for protecting data in transit but does not directly prevent session hijacking if proper session management practices are not also followed.

Get further explanation with Examzify DeepDiveBeta

Limit network access to administrators

Encrypt all network traffic

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy