RULE(RULE ID:338810)

Rule General Information
Release Date: 2025-04-22
Rule Name: NetEase QAnything SQL Injection Vulnerability (CVE-2024-7099)
Severity:
CVE ID:
Rule Protection Details
Description: netease-youdao/qanything version 1.4.1 contains a vulnerability where unsafe data obtained from user input is concatenated in SQL queries, leading to SQL injection. The affected functions include `get_knowledge_base_name`, `from_status_to_status`, `delete_files`, and `get_file_by_status`. An attacker can exploit this vulnerability to execute arbitrary SQL queries, potentially stealing information from the database. The issue is fixed in version 1.4.2.
Impact: An attacker can inject arbitrary sql commands to view or change the database of the target by exploiting the vulnerability successfully.
Affected OS: Windows, Linux, Others
Reference: https://github.com/netease-youdao/qanything/commit/a87354f09d93e95350fb45eb343dc75454387554
https://huntr.com/bounties/bc98983e-06cc-4a4b-be01-67e5010cb2c1
Solutions
Please refer to announcements or patches release by the vendor: https://github.com/netease-youdao/qanything/commit/a87354f09d93e95350fb45eb343dc75454387554