CVE-2024-31218: Webhood - Authentication Bypass
- Cve: CVE-2024-31218
- Name: Webhood - Authentication Bypass
- Description: Webhood is a self-hosted URL scanner used analyzing phishing and malicious sites. Webhood's backend container images in versions 0.9.0 and earlier are subject to Missing Authentication for Critical Function vulnerability. This vulnerability allows an unauthenticated attacker to send a HTTP request to the database (Pocketbase) admin API to create an admin account. The Pocketbase admin API does not check for authentication/authorization when creating an admin account when no admin accounts have been added. In its default deployment, Webhood does not create a database admin account. Therefore, unless users have manually created an admin account in the database, an admin account will not exist in the deployment and the deployment is vulnerable. Versions starting from 0.9.1 are patched. The patch creates a randomly generated admin account if admin accounts have not already been created i.e. the vulnerability is exploitable in the deployment. As a workaround, users can disable access to URL path starting with `/api/admins` entirely. With this workaround, the vulnerability is not exploitable via network.
- Impact: Unauthenticated attackers can create admin accounts, potentially gaining full control over the system.
- Remediation: Update to version 0.9.1 or later, which creates a random admin account if none exists.
- Vulnerability type: broken_authentication
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0072
- Epss percentile: 0.54674
- Assignee: [email protected]
- Published at: 2024-04-05T15:15:07Z
- Age in days: 963
- Modified at: 2026-06-17T07:28:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-31218
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-306 | Missing Authentication for Critical Functionality |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/chandrimanath04-hue/CVE-2024-31218-WEBHOOD-LAB | poc-in-github | 2026-09-20 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/webhood-io/webhood/commit/735e7fa2814edeec9a2c07778ed51b3c018609f9 | nvd | |
| https://github.com/webhood-io/webhood/security/advisories/GHSA-h533-rxhm-73j2 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| webhoodio:webhood | < 0.9.1 | no | adp_cpes | /v1/products/webhoodio/webhood |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| webhood-io/webhood | commit, security_advisory | yes | /v1/repositories/webhood-io/webhood |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-09-20
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts