Exception logging in Sharepoint app reveals clear-text connection details
When an exception occurs in the SharePoint app, connection credentials can be written to the Nextcloud log in clear text. An attacker who obtains the log could learn the credentials used to connect to a SharePoint service.
Originally disclosed on HackerOne
- Triaged in 16 hours
- Fixed in 35 days
- Disclosed after 4 months
Summary by the program
Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-qpf5-jj85-36h5
The report
Summary:
On Exceptions thrown in the context of the SharePoint app, connection credentials may be written to the Nextcloud log in clear text.
Steps To Reproduce:
Attempt to configure a sharepoint mount in an erroneous way.
Supporting Material/References:
- was files publically: https://github.com/nextcloud/sharepoint/issues/141
Impact
When an attacker gets hold of the nextcloud log, they may gain knowledge of credentials to connect to a SharePoint service.
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 exception handling logs the full connection details, including credentials, without redacting them.
Impact
An attacker who gets hold of the Nextcloud log may gain knowledge of credentials to connect to a SharePoint service.
What the attacker needed
Access to the Nextcloud log; SharePoint app configured with credentials
How it was found
- Attempt to configure a SharePoint mount in an erroneous way.
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.
When something goes wrong in the SharePoint app, the error saved to the log may include the connection credentials in readable form. Anyone who can read that log could then use them to access the SharePoint service.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.