Skip to content
Info disclosure Disclosed report Beginner

Nextcloud logs ldap passwords

When the LDAP server was temporarily unavailable, Nextcloud wrote LDAP bind data including usernames and passwords into its log files. Anyone able to read those logs could recover credentials for the affected accounts.

tribut Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 2 months
  • Disclosed after 2.4 years

When the ldap server is (temporarily) unavailable, data like the attached ends up in log files. I've replaced usernames with XXX_USERn_XXX and passwords with XXX_PASSn_XXX. It seems that at least the following are missing from $methodsWithSensitiveParameters in lib/private/Log.php:

  • bind
  • areCredentialsValid
  • invokeLDAPMethod
  • checkPasswordNoLogging

The original report as published on HackerOne, by tribut. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Root cause

Likely the logging code's list of methods whose parameters must be redacted did not include the LDAP bind and credential-checking methods, so their arguments were written out in full.

What the attacker needed

LDAP authentication configured; LDAP server temporarily unavailable; access to Nextcloud log files

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.

Nextcloud is a file-sharing server that can check logins against an LDAP directory, a central list of users and passwords. When that directory was briefly unreachable, the software wrote the login details it was trying to send into its own log files, which are meant for troubleshooting. Logs are often readable by more people than the password store, so those credentials could leak.

What is Info disclosure?

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

More from Nextcloud

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.