Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-10197 Overview
CVE-2025-10197 is a SQL injection vulnerability in HJSoft HCM Human Resources Management System through build 20250822. The flaw resides in the /selfservice/lawresource/downlawbase endpoint, where the ID parameter is passed to a backend database query without proper sanitization. A remote authenticated attacker can manipulate the ID argument to inject arbitrary SQL statements. The issue is tracked under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). A public proof of concept has been released, and the vendor did not respond to disclosure attempts.
Critical Impact
Remote attackers with low privileges can extract or manipulate database contents through the vulnerable downlawbase endpoint using crafted ID parameter values.
Affected Products
- HJSoft HCM Human Resources Management System up to and including build 20250822
- Vulnerable endpoint: /templates/attestation/../../selfservice/lawresource/downlawbase
- No vendor-supplied fixed version is available at time of disclosure
Discovery Timeline
- 2025-09-10 - CVE-2025-10197 published to the National Vulnerability Database
- 2026-06-17 - Entry last modified in NVD
Technical Details for CVE-2025-10197
Vulnerability Analysis
The vulnerability affects the downlawbase interface exposed under the selfservice/lawresource/ path of the HJSoft HCM application. The endpoint accepts an ID parameter that is concatenated directly into a SQL statement executed against the backend database. Because the input is not parameterized or escaped, an attacker can append arbitrary SQL clauses. The path uses a traversal segment (/templates/attestation/../..) that normalizes to the self-service module, suggesting the handler is reachable from authenticated self-service contexts. The flaw is classified under [CWE-74] as an injection weakness.
Root Cause
The root cause is unsafe construction of SQL queries from untrusted input. The application fails to use prepared statements, bind variables, or an allowlist validator for the ID parameter. Any string supplied to ID is treated as part of the query syntax, enabling injection payloads such as UNION SELECT, boolean-based blind extraction, or time-based inference. The vendor's lack of response indicates the underlying data access layer is likely shared across other lawresource handlers.
Attack Vector
Exploitation requires network reachability to the HCM web application and a valid low-privilege account that can access the self-service module. An attacker issues an HTTP request to the downlawbase endpoint with a malicious ID value. Successful exploitation can disclose employee records, payroll data, authentication material, or allow modification of database rows depending on the privileges of the database user. A public proof of concept detailing the injection is available on GitHub and indexed by VulDB entry #323236. Refer to the public advisory for request structure and payload details.
Detection Methods for CVE-2025-10197
Indicators of Compromise
- HTTP requests to /selfservice/lawresource/downlawbase containing SQL metacharacters such as single quotes, UNION, SLEEP(, WAITFOR, or comment sequences (--, /*) in the ID parameter
- Requests using path traversal normalization such as /templates/attestation/../../selfservice/lawresource/downlawbase
- Database error messages or unusually large response bodies returned from the downlawbase handler
- Abnormal spikes in SELECT queries from the HCM application service account against sensitive tables
Detection Strategies
- Deploy web application firewall rules that inspect the ID parameter on the downlawbase endpoint for SQL syntax tokens
- Enable database query logging and alert on queries referencing information_schema, sysobjects, or system catalogs originating from the HCM application user
- Correlate authentication logs with requests to self-service lawresource endpoints to flag low-privilege accounts probing the parameter
Monitoring Recommendations
- Monitor outbound data volumes from the HCM application host for exfiltration patterns following suspicious requests
- Record and retain full HTTP request bodies for the /selfservice/lawresource/ path to support post-incident analysis
- Alert on repeated 500-series responses from the downlawbase endpoint, which often indicate injection probing
How to Mitigate CVE-2025-10197
Immediate Actions Required
- Restrict network access to the HCM application to trusted internal networks or VPN clients until a patch is available
- Block or rate-limit requests to /selfservice/lawresource/downlawbase at the reverse proxy or WAF layer
- Audit the database account used by the HCM application and reduce its privileges to the minimum required
- Review authentication logs and database query logs for prior exploitation attempts referencing the ID parameter
Patch Information
No vendor patch is available. According to the published advisory, HJSoft was contacted but did not respond to the disclosure. Organizations should track updates through VulDB entry #323236 and contact the vendor directly for remediation guidance.
Workarounds
- Deploy a WAF signature that rejects non-numeric values in the ID parameter of the downlawbase endpoint
- Disable or remove the selfservice/lawresource/downlawbase handler if the law-resource download feature is not used
- Enforce database-layer protections such as query allowlisting or stored-procedure wrappers for the HCM application user
- Monitor the vendor advisory channel for an official fix and schedule rapid deployment when released
# Example WAF rule (ModSecurity) to block non-numeric ID values
SecRule REQUEST_URI "@contains /selfservice/lawresource/downlawbase" \
"id:1010197,phase:2,deny,status:403,\
chain,msg:'CVE-2025-10197 HJSoft HCM SQLi attempt'"
SecRule ARGS:ID "!@rx ^[0-9]+$" "t:none"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

