Skip to content
Info disclosure Write-up Beginner

website leaking OTP in inspect element

The website returned the one-time password (OTP) in the HTTP response, visible in the browser's developer tools. An attacker who can view that response could read the OTP and use it to log in to the account.

medium.com

Published on medium.com

loyalonlytoday love to share my knowledge to communitybuymeacoffee.com

loyalonlytoday, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the server included the OTP in the HTTP response body instead of sending it only through a separate channel.

Impact

An attacker who can view the response could obtain the OTP and log in to the account.

What the attacker needed

Access to the OTP request response

How it was found

  1. Request an OTP.
  2. Open the browser's developer tools (inspect).
  3. Search the page source or network response for the OTP.
  4. Find the OTP in the response.
  5. Use the OTP to log in.

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 write-up has not been written yet. The Original tab links to the source.

When you log in with a one-time password, the website sends that code to your browser. Normally the code should only be sent to your phone or email, not shown in the browser. Here the code was visible in the browser's developer tools, so anyone who could see that response could read the code and log in.

What is Info disclosure?

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

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.