Skip to content
Info disclosure Advisory Intermediate CVE-2020-16128

GHSL-2020-192, GHSL-2020-196: File existence disclosure in aptdeamon - CVE-2020-16128

Two methods in aptdaemon returned different error messages depending on whether a given file existed, allowing an unprivileged user to probe for the existence of files in root-only directories.

kevinbackhouse Follow

Originally disclosed on GitHub Security Lab

Two vulnerabilities in aptdaemon allow an unprivileged user to probe the existence of arbitrary files on the system. These vulnerabilities are very similar to CVE-2020-15703.

kevinbackhouse, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Impact

An unprivileged user could determine the existence of files in directories that are only readable by root.

What the attacker needed

Local access to the system; ability to send D-Bus messages

The fix

The fix was released, though the text does not describe the exact change.

How it was found

  1. Create a new transaction by calling the Clean method on the aptdaemon D-Bus service.
  2. Use the returned transaction ID to set the Terminal property to a path in a root-only directory.
  3. Observe the error message: an ownership error means the file exists, while a 'does not exist' error means it does not.
  4. Repeat with a non-existent path to confirm the difference.

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 report has not been written yet. The Original tab links to the source.

aptdaemon is a background service that helps install software. It has two settings that accept a file path. When given a path, it checks the file and returns one error if the file is missing and a different error if the file exists but is not owned by the user. By comparing these errors, someone without special permissions can learn whether secret files exist on the system.

What is Info disclosure?

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

More by kevinbackhouse

View all

47 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.