nerdexam
CompTIA

PT0-002 · Question #201

A penetration tester is testing a new version of a mobile application in a sandbox environment. To intercept and decrypt the traffic between the application and the external API, the tester has…

The correct answer is D. The application has the API certificate pinned. Despite installing a custom root CA, a mobile application showing a certificate mismatch error most likely indicates that the application is enforcing certificate pinning.

Vulnerability discovery and analysis

Question

A penetration tester is testing a new version of a mobile application in a sandbox environment. To intercept and decrypt the traffic between the application and the external API, the tester has created a private root CA and issued a certificate from it. Even though the tester installed the root CA into the trusted stone of the smartphone used for the tests, the application shows an error indicating a certificate mismatch and does not connect to the server. Which of the following is the MOST likely reason for the error?

Options

  • ATCP port 443 is not open on the firewall
  • BThe API server is using SSL instead of TLS
  • CThe tester is using an outdated version of the application
  • DThe application has the API certificate pinned.

How the community answered

(34 responses)
  • A
    9% (3)
  • B
    6% (2)
  • C
    3% (1)
  • D
    82% (28)

Why each option

Despite installing a custom root CA, a mobile application showing a certificate mismatch error most likely indicates that the application is enforcing certificate pinning.

ATCP port 443 is not open on the firewall

If TCP port 443 were not open, the connection would fail at the network layer, typically with a connection timed out or refused error, not a certificate mismatch.

BThe API server is using SSL instead of TLS

Whether the API server uses SSL or TLS (TLS is the modern standard) does not directly cause a certificate mismatch error when a valid (from the OS's perspective) root CA is installed; the issue typically lies with the trust chain or certificate validation logic.

CThe tester is using an outdated version of the application

An outdated application version is unlikely to be the primary cause of a specific certificate mismatch error when a custom root CA is properly installed, unless that specific version had a known, peculiar trust issue unrelated to standard pinning.

DThe application has the API certificate pinned.Correct

Certificate pinning is a security mechanism where an application is hardcoded to trust only a specific certificate or public key, or a specific set of certificates/public keys. Even if a custom root CA is installed in the device's trusted store, an application with pinning will reject any certificate that does not match its internal whitelist, leading to a mismatch error during a Man-in-the-Middle attempt.

Concept tested: Mobile application security, certificate pinning

Source: https://owasp.org/www-community/vulnerabilities/Pinning_Cheat_Sheet

Topics

#Certificate pinning#Mobile security#Traffic interception#SSL/TLS troubleshooting

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice