Opera Browser VPN Bypass
Opera's VPN has a setting to bypass the VPN for default search engines, and search engine APIs can be used to reveal the user's real IP address. An attacker could trick a user into visiting a page that queries the search engine API and obtains the real IP.
Published on medium.com
While looking at Opera functionalities I stumbled upon the built-in VPN inside the browser and I was able to find a technique that allow an attacker to bypass the VPN connection and get the users real IP.
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 VPN bypass for default search engines applies to all requests to those domains, including API endpoints that can be embedded cross-origin, allowing real IP disclosure.
Impact
An attacker could learn the user's real IP address, defeating the VPN's privacy protection, but only if the user has enabled the VPN bypass for default search engines and visits a malicious page.
What the attacker needed
Opera browser with built-in VPN; VPN bypass for default search engines enabled; Victim visits attacker-controlled page
The fix
The issue was patched after 3 months, likely by restricting the VPN bypass to only the search engine's main site and not its API endpoints.
How it was found
- Change the default search engine to DuckDuckGo in settings.
- Enable the VPN and enable the bypass for default search engines.
- Visit an IP-checking site to confirm the VPN IP.
- Open a page on the attacker's domain that queries the search engine API to reveal the real IP.
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 VPN hides your real IP address by routing traffic through another server. Opera has an option to turn off the VPN for search engine sites, so those sites see your real IP. The report shows that search engine APIs can be abused to leak that real IP to any website.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.