nerdexam
CompTIA

PT0-002 · Question #196

A penetration tester captured the following traffic during a web-application test: Which of the following methods should the tester use to visualize the authorization information being transmitted?

The correct answer is C. Decode the authorization header using Base64. Authorization headers in web traffic, particularly those using Basic authentication or JWTs, typically contain credentials or tokens that are Base64 encoded. Decoding the header content with Base64 is the correct method to visualize the underlying authorization information.

Vulnerability discovery and analysis

Question

A penetration tester captured the following traffic during a web-application test:

Which of the following methods should the tester use to visualize the authorization information being transmitted?

Exhibit

PT0-002 question #196 exhibit

Options

  • ADecode the authorization header using UTF-8.
  • BDecrypt the authorization header using bcrypt.
  • CDecode the authorization header using Base64.
  • DDecrypt the authorization header using AES.

How the community answered

(24 responses)
  • B
    8% (2)
  • C
    88% (21)
  • D
    4% (1)

Why each option

Authorization headers in web traffic, particularly those using Basic authentication or JWTs, typically contain credentials or tokens that are Base64 encoded. Decoding the header content with Base64 is the correct method to visualize the underlying authorization information.

ADecode the authorization header using UTF-8.

UTF-8 is a character encoding standard; it is used to represent characters, not to decode an already encoded authorization string that uses schemes like Base64.

BDecrypt the authorization header using bcrypt.

bcrypt is a password hashing algorithm used to securely store passwords, not for decrypting or decoding authorization headers transmitted over a network.

CDecode the authorization header using Base64.Correct

In common web application authentication schemes, such as Basic Authentication, the credentials (username:password) are transmitted within the Authorization header after being Base64 encoded. Decoding this Base64 string is the standard method to reveal the underlying plaintext authorization information.

DDecrypt the authorization header using AES.

AES is a symmetric encryption algorithm; while theoretically possible to encrypt parts of a web request, it's not a standard mechanism for the primary Authorization header, and decryption would require a known key which an attacker would typically not possess.

Concept tested: Web authentication, Base64 decoding

Source: https://datatracker.ietf.org/doc/html/rfc7617

Topics

#HTTP Basic Authentication#Base64 encoding#Traffic analysis#Web application security

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice