Skip to content
Info disclosure Disclosed report Advanced

Token leak in security challenge flow allows retrieving victim's PayPal email and plain text password

Sensitive tokens used in the CAPTCHA security challenge were leaked in a JavaScript file, allowing a malicious site to obtain them via cross-site script inclusion. If a user then logged in through a link from that site, the attacker could complete the challenge and replay the authentication request, exposing the user's password.

alexbirsan Follow

Originally disclosed on HackerOne

Bounty$15,300 High 8.0 View original
  • Triaged in 18 days
  • Fixed in 23 days
  • Paid in 22 days
  • Disclosed after 51 days

Summary by the program

A bug was identified whereby sensitive, unique tokens were being leaked in a JS file used by the recaptcha implementation. In certain cases, a user must solve a CAPTCHA challenge after authenticating. When the security challenge is completed, the authentication request is replayed to log in. The exposed tokens were used in the POST request to solve the CAPTCHA.

The researcher identified a method by which a user, starting from a malicious site, could expose the security challenge token to a third party via a cross-site script inclusion (XSSI) attack. If the user then followed a login link from the malicious site and entered their credentials, the malicious third party could complete the security challenge, triggering the authentication request replay and exposing the user's password. This exposure only occurred if a user followed a login link from a malicious site, similar to a phishing page.

PayPal implemented additional controls on the security challenge request to prevent token reuse, which resolved the issue, and no evidence of abuse was found.

Summary by the researcher

Full write-up available here:

https://medium.com/@alex.birsan/the-bug-that-exposed-your-paypal-password-539fc2896da9?sk=aeba33c3c331c3f06d230296a21a41e7

The original report as published on HackerOne, by alexbirsan. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the security challenge tokens were embedded in a JavaScript file that was accessible cross-origin without protection, enabling XSSI.

Impact

A user's plain text password could be exposed, but only if the user followed a login link from a malicious site and entered credentials.

What the attacker needed

Victim visits malicious site; victim follows login link from malicious site; victim enters credentials

The fix

PayPal implemented additional controls on the security challenge request to prevent token reuse, which resolved the issue.

How it was found

  1. The attacker hosts a malicious site that includes the vulnerable JavaScript file via a script tag.
  2. The victim visits the malicious site, which extracts the security challenge token.
  3. The victim follows a login link from the malicious site and enters their credentials.
  4. The attacker uses the stolen token to complete the security challenge, triggering the authentication request replay and exposing the victim's password.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When you log in, sometimes you have to solve a CAPTCHA (a puzzle to prove you're human). The tokens (secret codes) used for that puzzle were accidentally included in a JavaScript file that any website could read. A malicious site could steal those tokens, and if you then logged in from that site, the attacker could finish the puzzle for you and capture your password.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by alexbirsan

View all

11 more disclosed reports, best first.

More from PayPal

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.