PyPI: datahub
CVE-2023-25558
Safety vulnerability ID: SFTY-20230211-14807
Safety legacy ID: pyup.io-63332
DataHub under 0.9.5 uses the X-DataHub-Actor HTTP header to infer the user sending requests on behalf of the frontend. However, due to case-insensitivity, an attacker could potentially exploit this by sending a header with different casing (e.g., X-DATAHUB-ACTOR), leading to potential authorization bypass. This allows any user to impersonate the system user account and perform actions on its behalf. This vulnerability, tracked as GHSL-2022-079, was discovered and reported by the GitHub Security lab. https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
Overview
DataHub under 0.9.5 uses the X-DataHub-Actor HTTP header to infer the user sending requests on behalf of the frontend. However, due to case-insensitivity, an attacker could potentially exploit this by sending a header with different casing (e.g., X-DATAHUB-ACTOR), leading to potential authorization bypass. This allows any user to impersonate the system user account and perform actions on its behalf. This vulnerability, tracked as GHSL-2022-079, was discovered and reported by the GitHub Security lab. https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
Advisory
DataHub under 0.9.5 uses the X-DataHub-Actor HTTP header to infer the user sending requests on behalf of the frontend. However, due to case-insensitivity, an attacker could potentially exploit this by sending a header with different casing (e.g., X-DATAHUB-ACTOR), leading to potential authorization bypass. This allows any user to impersonate the system user account and perform actions on its behalf. This vulnerability, tracked as GHSL-2022-079, was discovered and reported by the GitHub Security lab. https://github.com/datahub-project/datahub/security/advisories/GHSA-hrwp-2q5c-86wv https://github.com/datahub-project/datahub/commit/2a182f484677d056730d6b4e9f0143e67368359f
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more