Skip to content
Threat Feed
critical threat exploited

SQL Injection in Hongjing e-HR /servlet/codesettree

Hongjing e-HR versions prior to 8.2 are vulnerable to unauthenticated SQL injection via the categories parameter in the /servlet/codesettree endpoint, allowing remote attackers to extract sensitive database content.

CVE search metadata

CVE search record: CVE-2023-54399. Severity: critical. CVSS: 9.8. KEV: no. Product: e-HR (< 8.2). Brief: SQL Injection in Hongjing e-HR /servlet/codesettree. Brief link: https://feed.craftedsignal.io/briefs/2026-09-hongjing-ehr-sql-injection/

Hongjing e-HR versions prior to 8.2 contain a critical SQL injection vulnerability residing in the /servlet/codesettree endpoint. The application fails to properly sanitize the 'categories' query parameter after stripping HRMS-specific encoding, allowing an unauthenticated remote attacker to inject malicious SQL syntax. This vulnerability permits the execution of UNION SELECT statements, which can be leveraged to query arbitrary tables within the backend database. Defenders should note that this flaw can be exploited to exfiltrate sensitive data, including administrative credentials from the operuser table. This vulnerability has been subject to active exploitation in the wild since October 2023, as identified by the Shadowserver Foundation.

Impact

Successful exploitation allows unauthenticated attackers to gain unauthorized access to sensitive corporate data. By targeting credential tables such as operuser, attackers can obtain account information, facilitating further unauthorized access to the HR management system and potentially lateral movement within the network. This affects organizations utilizing Hongjing e-HR globally.

Recommendation

  1. Upgrade all instances of Hongjing e-HR to version 8.2 or higher immediately to address the underlying vulnerability.
  2. Implement strict input validation on the /servlet/codesettree endpoint to reject requests containing SQL keywords or metacharacters in the categories parameter.
  3. Monitor web access logs for suspicious HTTP requests targeting /servlet/codesettree containing UNION, SELECT, or character manipulation strings.
  4. Perform a security audit of the backend database to check for unauthorized access or dumped credential records following the timeline of observed exploitation (since October 2023).

Immediate actions

Upgrade Hongjing e-HR to version 8.2 or later

IT Operations 24h

Threat Hunt

Search logs for unusual database query patterns or UNION SELECT strings in /servlet/codesettree

T1190 high high confidence hunt now

Data: Web server logs

Mitigations

Patch Hongjing e-HR to 8.2

immediate IT Operations

CVE-2023-54399

Detection coverage 1

Detects CVE-2023-54399 Exploitation - Unauthenticated SQL Injection in e-HR

critical

Detects attempts to exploit CVE-2023-54399 via malicious UNION SELECT payloads in the categories parameter of the /servlet/codesettree endpoint.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →