Vulnerability record · CVE-2021-40875 · published 22 September 2021
CVE-2021-40875: Gurock TestRail improper access control exposes file list and secrets
Gurock · Testrail
TestRail versions before 7.2.0.3014 allow unauthenticated access to the /files.md5 file, which lists application files and their paths. Those paths can be probed and in some cases reveal hardcoded credentials, API keys, or other sensitive data. The flaw is a straightforward access control failure on a client-side file, so it matters to any internet-exposed TestRail instance.
Description
Improper Access Control in Gurock TestRail versions < 7.2.0.3014 resulted in sensitive information exposure. A threat actor can access the /files.md5 file on the client side of a Gurock TestRail application, disclosing a full list of application files and the corresponding file paths. The corresponding file paths can be tested, and in some cases, result in the disclosure of hardcoded credentials, API keys, or other sensitive data.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Automated analysis
high priorityCVSS 7.5 with no authentication or interaction required, public exploit references, and a very high EPSS percentile make this a high-priority exposure despite no KEV listing.
What it is
TestRail versions before 7.2.0.3014 allow unauthenticated access to the /files.md5 file, which lists application files and their paths. Those paths can be probed and in some cases reveal hardcoded credentials, API keys, or other sensitive data. The flaw is a straightforward access control failure on a client-side file, so it matters to any internet-exposed TestRail instance.
Impact
An attacker gains a full inventory of application files and paths, and can use that map to reach files that may contain hardcoded credentials or API keys. This is information disclosure only; there is no code execution or data modification in the described flaw.
Attack surface
Reached over the network by requesting /files.md5 directly from the TestRail application. The CVSS vector shows no privileges and no user interaction required, so the endpoint is reachable by an unauthenticated remote client.
Exploitation
Not listed in CISA KEV, but EPSS is 0.48417 (98.8th percentile) and multiple references are tagged Exploit, indicating public exploit material exists. No ransomware group use is documented.
What to do
- Upgrade TestRail to 7.2.0.3014 or later, which is the fixed version named in the advisory.
- If immediate upgrade is not possible, block or restrict access to /files.md5 at the web server or reverse proxy.
- Do not expose TestRail directly to the internet; place it behind VPN or an authenticated gateway.
- Rotate any credentials, API keys, or tokens that may have been stored in files reachable through the disclosed paths.
- Review file permissions and remove hardcoded secrets from application files.
- Search logs for requests to /files.md5 and treat any hits as potential reconnaissance.
Detection
- Alert on HTTP requests to /files.md5 in web server or WAF logs, especially from unauthenticated clients.
- Baseline normal TestRail file access and flag enumeration of many file paths in a short window.
- Monitor for outbound or follow-up requests to paths disclosed in files.md5 that are not part of normal application traffic.
- Audit exposed TestRail instances for the presence of /files.md5 and confirm the deployed version.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/164270/Gurock-Testrail-7.2.0.3014-Improper-Access-Control.html | ExploitThird Party AdvisoryVDB Entry |
| https://github.com/SakuraSamuraii/derailed | Third Party Advisory |
| https://johnjhacking.com/blog/cve-2021-40875/ | ExploitThird Party Advisory |
| https://www.gurock.com/testrail/tour/enterprise-edition | ProductVendor Advisory |
| http://packetstormsecurity.com/files/164270/Gurock-Testrail-7.2.0.3014-Improper-Access-Control.html | ExploitThird Party AdvisoryVDB Entry |
| https://github.com/SakuraSamuraii/derailed | Third Party Advisory |
| https://johnjhacking.com/blog/cve-2021-40875/ | ExploitThird Party Advisory |
| https://www.gurock.com/testrail/tour/enterprise-edition | ProductVendor Advisory |
Track CVE-2021-40875 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-40875), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.