diff --git a/advisories/github-reviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json b/advisories/github-reviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json new file mode 100644 index 00000000000..1f9c8e7084b --- /dev/null +++ b/advisories/github-reviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json @@ -0,0 +1,71 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-f54f-hr32-586f", + "modified": "2025-05-05T18:24:47Z", + "published": "2025-05-03T21:30:23Z", + "withdrawn": "2025-05-05T18:24:47Z", + "aliases": [], + "summary": "Duplicate Advisory: `allowed_domains` can be bypassed by putting a decoy domain in http auth username portion of a URL", + "details": "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-x39x-9qw5-ghrf. This link is maintained to preserve external references.\n\n# Original Description\nIn browser-use (aka Browser Use) before 0.1.45, URL parsing of allowed_domains is mishandled because userinfo can be placed in the authority component.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "browser-use" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.1.45" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 0.1.44" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/security/advisories/GHSA-x39x-9qw5-ghrf" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47241" + }, + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/pull/1561" + }, + { + "type": "PACKAGE", + "url": "https://github.com/browser-use/browser-use" + }, + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/releases/tag/0.1.45" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-647" + ], + "severity": "CRITICAL", + "github_reviewed": true, + "github_reviewed_at": "2025-05-05T18:24:47Z", + "nvd_published_at": "2025-05-03T21:15:48Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/05/GHSA-x39x-9qw5-ghrf/GHSA-x39x-9qw5-ghrf.json b/advisories/github-reviewed/2025/05/GHSA-x39x-9qw5-ghrf/GHSA-x39x-9qw5-ghrf.json new file mode 100644 index 00000000000..e6d2be6bb0e --- /dev/null +++ b/advisories/github-reviewed/2025/05/GHSA-x39x-9qw5-ghrf/GHSA-x39x-9qw5-ghrf.json @@ -0,0 +1,72 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-x39x-9qw5-ghrf", + "modified": "2025-05-05T18:25:04Z", + "published": "2025-05-05T18:25:04Z", + "aliases": [ + "CVE-2025-47241" + ], + "summary": "Browser Use allows bypassing `allowed_domains` by putting a decoy domain in http auth username portion of a URL", + "details": "### Summary \nDuring a manual source code review, [**ARIMLABS.AI**](https://arimlabs.ai) researchers identified that the `browser_use` module includes an embedded whitelist functionality to restrict URLs that can be visited. This restriction is enforced during agent initialization. However, it was discovered that these measures can be bypassed, leading to severe security implications. \n\n### Details \n**File:** `browser_use/browser/context.py` \n\nThe `BrowserContextConfig` class defines an `allowed_domains` list, which is intended to limit accessible domains. This list is checked in the `_is_url_allowed()` method before navigation:\n\n```python\n@dataclass\nclass BrowserContextConfig:\n \"\"\"\n [STRIPPED]\n \"\"\"\n cookies_file: str | None = None\n minimum_wait_page_load_time: float = 0.5\n wait_for_network_idle_page_load_time: float = 1\n maximum_wait_page_load_time: float = 5\n wait_between_actions: float = 1\n\n disable_security: bool = True\n\n browser_window_size: BrowserContextWindowSize = field(default_factory=lambda: {'width': 1280, 'height': 1100})\n no_viewport: Optional[bool] = None\n\n save_recording_path: str | None = None\n save_downloads_path: str | None = None\n trace_path: str | None = None\n locale: str | None = None\n user_agent: str = (\n 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36'\n )\n\n highlight_elements: bool = True\n viewport_expansion: int = 500\n allowed_domains: list[str] | None = None\n include_dynamic_attributes: bool = True\n\n _force_keep_context_alive: bool = False\n```\nThe _is_url_allowed() method is responsible for checking whether a given URL is permitted:\n```python\ndef _is_url_allowed(self, url: str) -> bool:\n \"\"\"Check if a URL is allowed based on the whitelist configuration.\"\"\"\n if not self.config.allowed_domains:\n return True\n\n try:\n from urllib.parse import urlparse\n\n parsed_url = urlparse(url)\n domain = parsed_url.netloc.lower()\n\n # Remove port number if present\n if ':' in domain:\n domain = domain.split(':')[0]\n\n # Check if domain matches any allowed domain pattern\n return any(\n domain == allowed_domain.lower() or domain.endswith('.' + allowed_domain.lower())\n for allowed_domain in self.config.allowed_domains\n )\n except Exception as e:\n logger.error(f'Error checking URL allowlist: {str(e)}')\n return False\n```\nThe core issue stems from the line `domain = domain.split(':')[0]`, which allows an attacker to manipulate basic authentication credentials by providing a username:password pair. By replacing the username with a whitelisted domain, the check can be bypassed, even though the actual domain remains different.\n### Proof of Concept (PoC)\n\nSet allowed_domains to ['example.com'] and use the following URL:\n\nhttps://example.com:pass@localhost:8080\n\nThis allows bypassing all whitelist controls and accessing restricted internal services.\n### Impact\n\n- Affected all users relying on this functionality for security.\n- Potential for unauthorized enumeration of localhost services and internal networks.\n- Ability to bypass domain whitelisting, leading to unauthorized browsing.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "browser-use" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.1.45" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 0.1.44" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/security/advisories/GHSA-x39x-9qw5-ghrf" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47241" + }, + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/pull/1561" + }, + { + "type": "PACKAGE", + "url": "https://github.com/browser-use/browser-use" + }, + { + "type": "WEB", + "url": "https://github.com/browser-use/browser-use/releases/tag/0.1.45" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-647" + ], + "severity": "CRITICAL", + "github_reviewed": true, + "github_reviewed_at": "2025-05-05T18:25:04Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json b/advisories/unreviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json deleted file mode 100644 index c30c7319437..00000000000 --- a/advisories/unreviewed/2025/05/GHSA-f54f-hr32-586f/GHSA-f54f-hr32-586f.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "schema_version": "1.4.0", - "id": "GHSA-f54f-hr32-586f", - "modified": "2025-05-03T21:30:23Z", - "published": "2025-05-03T21:30:23Z", - "aliases": [ - "CVE-2025-47241" - ], - "details": "In browser-use (aka Browser Use) before 0.1.45, URL parsing of allowed_domains is mishandled because userinfo can be placed in the authority component.", - "severity": [ - { - "type": "CVSS_V3", - "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N" - } - ], - "affected": [], - "references": [ - { - "type": "WEB", - "url": "https://github.com/browser-use/browser-use/security/advisories/GHSA-x39x-9qw5-ghrf" - }, - { - "type": "ADVISORY", - "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-47241" - }, - { - "type": "WEB", - "url": "https://github.com/browser-use/browser-use/pull/1561" - }, - { - "type": "WEB", - "url": "https://github.com/browser-use/browser-use/releases/tag/0.1.45" - } - ], - "database_specific": { - "cwe_ids": [ - "CWE-647" - ], - "severity": "MODERATE", - "github_reviewed": false, - "github_reviewed_at": null, - "nvd_published_at": "2025-05-03T21:15:48Z" - } -} \ No newline at end of file