Skip to content
Access control Write-up Intermediate

CVE-2021-40875: Improper Access Control in Gurock TestRail versions ≤ 7.2.0.3014 results in sensitive file exposure

The TestRail application exposed a file listing (files.md5) that revealed many internal file paths, and some of those paths could be accessed without proper authorisation. An attacker could use this information to read sensitive files from the server.

johnjhacking.com

Published on johnjhacking.com

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 hardcoded credentials, API keys, or other sensitive…

John, on johnjhacking.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application did not enforce proper authorisation checks on certain file paths listed in a publicly accessible files.md5 file.

What the attacker needed

Access to the TestRail web interface

How it was found

  1. Use Burp Suite to inspect requests and responses of the TestRail application.
  2. Notice a files.md5 path that contains a large list of file paths.
  3. Try accessing some of the listed paths and observe that many are forbidden but a few are accessible.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web application had a file that listed many internal file paths, like a map of the server's files. Some of those files could be opened by anyone, even without logging in, which could let an attacker see private information. This is called improper access control because the server did not check who was allowed to see those files.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.