OnePlus Open/Unvalidated Redirects & Forwards

Mainak Sadhukhan
Sep 26 · 2 min read

Open redirect is a security flaw in an app or a web page that causes it to fail to properly authenticate URL.

When apps and web pages have requests for URLs, they are supposed to verify that those URLs are part of the intended page’s domain. Open redirect is a failure in that process that makes it possible for attackers to steer users to malicious third-party websites. Sites or apps that fail to authenticate URLs can become a vector for malicious redirects to convincing fake sites for identity theft or sites that install malware.

Here is how Oneplus website was vulnearble with this vulnerability.

So, whenever after signing in to your account, you try to sign out, the request is sent to the web server that the account needs to be logged out and the page should redirect to the OnePlus Homepage. Here, is where the vulnerability lies, the redirect url was not being validated by the server and as a result if we edit the Response header by intercepting the traffic with BurpSuite, and change the redirected url to some other malicious website, it will redirect to the target url after logging out. This can be exploited because the modified malicious url will have the redirect parameter set to the malicious website url but the Host URL remains the same as Oneplus and to the victim it seems that the url is genuine oneplus url.


Steps to Reproduce:

  1. Go to
  2. Sign in with oneplus account.
  3. Turn on intercept on in BurpSuite and try to sign out.
  4. The Request will be intercepted in BurpSuite. In the header, search for the parameter “callback” and replace the oneplus homepage url with anything else (eg:
  5. Forward the packet and turn the intercept off.
  6. in the browser, it will now signout from the oneplus account but will redirect to BING homepage.

POC Video:

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade