UXSS Vulnerability in DuckDuckGo Browser’s AutoConsent JS Bridge Allows Cross-Origin Attacks
A critical vulnerability was identified in the DuckDuckGo browser for Android, exposing users to Universal Cross-Site Scripting (UXSS) attacks.
A critical vulnerability was identified in the DuckDuckGo browser for Android, exposing users to Universal Cross-Site Scripting (UXSS) attacks.
This vulnerability was found in the browser's AutoConsent JS bridge, which allows malicious code from an untrusted source to execute on a trusted webpage.
The issue arises from the AutoconsentAndroid Java bridge, which is designed to manage cookie consent pop-ups automatically. This bridge is injected into webpages during loading.
The vulnerability occurs because this bridge accepts messages from any frame on a webpage, including cross-origin iframes, without verifying the source or requiring an authentication token.
When the bridge receives a message, it triggers the webView.evaluateJavascript(...) method in Android WebViews, executing the provided JavaScript in the context of the main, top-level document.
A critical vulnerability was identified in the DuckDuckGo browser for Android, exposing users to Universal Cross-Site Scripting (UXSS) attacks.
Due to the lack of validation for message origins, an attacker can embed a malicious, hidden iframe on a webpage, which can send a message to the AutoconsentAndroid bridge. This bridge then executes the malicious JavaScript as if it belonged to the trusted, top-level webpage, violating the Same-Origin Policy (SOP).
The vulnerability allows for the execution of arbitrary JavaScript across different origins without user interaction. Potential exploitations include:
Stealing cookies and session tokens. Accessing or modifying sensitive data on the main page. Injecting malicious content into any website the user visits.
The flaw received a CVSS score of 8.6 (High) and is present in the browser's default settings.
DuckDuckGo has addressed the issue in recent updates to the com.duckduckgo.mobile.android app. Users are advised to update their DuckDuckGo browser to the latest version to protect against potential attacks.
Based on reporting by GBHackers.
