Skip to content
Business logic Write-up Intermediate

No Program, No Permission — Still Got a Bounty for Doing th

The OTP request endpoint accepted an undocumented parameter that was reflected verbatim into the SMS message sent to the user. An attacker could therefore control the content of security SMS messages, enabling phishing or malware distribution under the company's name.

Huntsman Follow

Published on medium.com

Hope all is well with you. It’s been a while since my last write-up — sorry for the silence!

Huntsman, 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 accepted a client-supplied parameter for the SMS auto-fill content without validating or restricting it, allowing arbitrary text injection into outbound messages.

Impact

An attacker could send SMS messages on behalf of the company containing phishing links, malware, or fake alerts, potentially compromising user security and damaging the company's reputation.

What the attacker needed

Ability to send OTP request to API; knowledge of OTP_reader parameter

The fix

The company fixed the vulnerability by securing the OTP process, likely by removing or validating the OTP_reader parameter so client input cannot control SMS content.

How it was found

  1. Create an account on the mobile app by entering email, phone number, and other details.
  2. Receive the OTP SMS and notice it contains a 14-bit encoded character used for auto-fill.
  3. Recall from web app recon that a cancel-subscription OTP request included a parameter named OTP_reader.
  4. Send a phone OTP request to the API with the OTP_reader parameter set to a custom value.
  5. Observe that the custom value appears in the SMS message received on the phone.

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 sign up, the app sends a one-time code (OTP) by text message to verify your phone. The app had a hidden setting that let the sender choose extra text to appear in that text message. Because the app did not check this setting, anyone could make the official text message say whatever they wanted, which could trick users into clicking bad links.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.