CVE-2024-31218

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2024-31218
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31218.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-31218
Aliases
  • GHSA-h533-rxhm-73j2
Published
2024-04-05T15:15:07Z
Modified
2024-10-08T04:12:18.988568Z
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/webhood-io/webhood

Affected ranges

Type
GIT
Repo
https://github.com/webhood-io/webhood
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.3.0
v0.4.0
v0.5.0
v0.5.1
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.9.0