How I hacked Income Tax Portal Pt. 2
The mobile OTP verification on a government tax portal had no effective rate limiting, so an attacker could send unlimited SMS one-time passwords. This could enable account takeover and let an attacker run up large SMS bills for the operator.
medium.com
Published on medium.com
If you haven’t read the part one to hacking Income Tax Portal, I have attached link. https://adwaitug.medium.com/how-i-hacked-income-tax-website-94094671e51f
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 OTP endpoint lacked proper rate limiting, and the limit that was added only counts the phone number, not the PAN, so changing the number resets it.
Impact
An attacker could take over an individual's account and send unlimited SMS messages, adding to the operator's bill; the text notes the issue was resolved only in a way, and the number-switching bypass still works.
What the attacker needed
Access to the OTP request endpoint; ability to change the phone number used
The fix
Rate limiting should be enforced properly and tied to both the phone number and the PAN, and the portal should check that the number and PAN are actually linked.
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 code sent by text message, the site should limit how many codes it sends. Here it did not, so someone could keep requesting codes without limit. That means they could try to guess a code to get into an account, and the site owner pays for every text sent.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.