In mintplex-labs/anything-llm, a vulnerability exists due to improper input validation in the workspace update process. Specifically, the application fails to validate or format JSON data sent in an HTTP POST request to /api/workspace/:workspace-slug/update, allowing it to be executed as part of a database query without restrictions. This flaw enables users with a manager role to craft a request that includes nested write operations, effectively allowing them to create new Administrator accounts.
{
"cna_assigner": "@huntr_ai",
"cwe_ids": [
"CWE-20"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4287.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "SplitRange"
}
]
}
]
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "94b58249a37a21b1c08deaa2d1edfdecbb6deb18"
}
],
"source": "REFERENCES_COMMIT"
}
]
}