Sensitive Information Disclosure via Back Button Post Logout on https://apps.nextcloud.com/account/
After logging out, the account page remains accessible via the browser's back button, exposing the user's name and email address. An attacker with access to the same browser could view this cached sensitive information.
vulnerability_is_here Follow with 200_ok
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 27 days
- Disclosed after 57 days
Summary:
A cache control vulnerability was identified on the https://apps.nextcloud.com/account/ page. After logging out, sensitive information such as the user's first name, last name, and email address remains accessible by using the browser's back button. This occurs due to improper caching of authenticated pages, allowing unauthorized access to sensitive user information.
Steps To Reproduce:
-
Navigate to https://apps.nextcloud.com/account/ and log in using valid credentials.
-
Observe that the account dashboard displays sensitive information such as your name, email, and other details.
-
Click on the Logout button.
-
Press the Back button on the browser.
-
Observe that the previous page containing sensitive information is still accessible without re-authentication.
Supporting Material/References:
-
OWASP Secure Headers Project: https://owasp.org/www-project-secure-headers/
-
MDN Web Docs - Cache-Control Header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
Impact
-
Privacy Violation: Sensitive information is exposed to unauthorized access.
-
Regulatory Non-Compliance: Fails to comply with GDPR or similar data protection regulations.
-
Security Risk: In shared computer scenarios, another user could retrieve the cached content.
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 application did not set proper Cache-Control headers to prevent caching of authenticated pages.
Impact
In shared computer scenarios, another user could retrieve the cached content, leading to privacy violation and potential regulatory non-compliance.
What the attacker needed
Victim logged in on shared computer; attacker has access to same browser
How it was found
- Navigate to the account page and log in.
- Observe the account dashboard displays sensitive information.
- Click the Logout button.
- Press the browser's Back button.
- Observe the previous page is still accessible without re-authentication.
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 you log out of a website, your browser might still keep a copy of the previous page in its cache (a temporary storage). If someone else uses the same computer and presses the back button, they could see your personal details like your name and email. This happens because the website did not tell the browser not to store that page.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.