OAuth Bug
The report claims that an OAuth endpoint accepts a manipulated redirect parameter, and that a user authorising Twitter through it encounters an error page. It does not show that the redirect actually goes to the attacker's site or that any data is exposed.
- Triaged in 5 hours
- Fixed in 5 days
- Disclosed after 7 days
I read the bug of @melvin and I also try to bypass this https://app.respond.ly/_oauth/twitter/?requestTokenAndRedirect=https://hackerone.com
so I made a bypassing tehcnique but didnt work https://app.respond.ly/_oauth/twitter/?requestTokenAndRedirect=//hackerone.com
But I think I found a bug This is the Screen shot: http://prntscr.com/3cu58e
When a user authorizes their twitter to connect with the URL above they will encounter that error.
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 OAuth endpoint does not strictly validate the requestTokenAndRedirect parameter, but the text does not confirm the exact mistake.
Impact
The author only observed an error page; no redirect to an attacker-controlled site or data leak is demonstrated.
What the attacker needed
A Twitter account; authorising Twitter through the crafted OAuth URL
How it was found
- Open the OAuth URL with the redirect parameter set to an external site.
- Change the parameter to a protocol-relative form and observe that the bypass does not work.
- Authorise Twitter through the crafted URL and see an error page.
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.
OAuth is a way to log in to one site using another account, such as Twitter. The site must check where it sends the user afterwards, because a loose check can send them to an attacker's page. Here the author only shows an error page, not a working redirect.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.