Skip to content
Info disclosure Write-up Beginner

TestLink <= 1.9.12 (database.class.php) Path Disclosure Weakness

The TestLink application's database.class.php script outputs debug information via PHP's debug_print_backtrace() function, which can reveal the web root directory path. An attacker could send direct requests to certain scripts to learn the server's filesystem path.

karmainsecurity.com

Published on karmainsecurity.com

The vulnerable code is located in the /lib/functions/database.class.php script:

The author, on karmainsecurity.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 debug output from debug_print_backtrace() is left enabled in production, exposing internal file paths.

Impact

An attacker could learn the web root directory path, which may aid further attacks, though the text does not claim direct compromise.

What the attacker needed

Direct requests to certain scripts

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.

Some web applications show extra technical details when something goes wrong, like the full folder path on the server. Here, a PHP function called debug_print_backtrace() prints a list of internal steps, including file paths, which can help an attacker learn where files are stored. This is called a path disclosure weakness.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.