Skip to content
Business logic Write-up Intermediate

OTP BYPASS TECHNIQUE its My StOry [sweet and sour]

The server blocked repeated requests by checking that the X-Request-Id header stayed the same, returning 401 after the first request. Changing the header value on each request bypassed this check in a manual repeater, but automated requests still mostly failed.

medium.com

Published on medium.com

Hi Hackers welcome back with another article. This is my story when i was struggling for bypass rate limit or some kind of restrictions.

Mr Horbio, 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 used the X-Request-Id header as a simple anti-automation check, assuming it would be unique per request, rather than enforcing a proper rate limit.

Impact

The header change allowed a single manual request to bypass the block, but automated brute forcing still mostly failed, so the practical impact was limited.

What the attacker needed

Access to the coupon endpoint; ability to send custom headers

How it was found

  1. Send a normal request to the coupon endpoint and observe a successful response.
  2. Send further requests and observe 401 Unauthorized responses.
  3. Notice the X-Request-Id header in the response and infer it is used to detect repeats.
  4. Change the X-Request-Id value on each manual request and see it accepted.
  5. Try the same with an automated intruder, but only a few requests succeed before 401 returns.

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.

A website can try to stop someone from guessing many coupon codes quickly by looking at a request header that should change each time. If the header stays the same, the site treats it as a repeat and refuses it. The author found that changing the header let a single manual request through, but sending many automated requests still got blocked.

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.