Skip to content
OAuth / SSO Disclosed report Intermediate CVE-2018-3761

OAuth2 Access Token and App Password Security Vulnerability

The OAuth2 endpoint did not follow RFC6749, failing to verify provided data and to properly rotate and expire access tokens. If an OAuth client were compromised, this could lead to unauthorised access.

noumar Follow

Originally disclosed on HackerOne

Medium 6.4 View original
  • Triaged in 7 days
  • Fixed in 43 days
  • Paid in 38 days
  • Disclosed after 3 months

Summary by the program

The OAuth2 endpoint of the Nextcloud server was not following RFC6749. The server did not perform required verification of provided data. And the server did not properly rotate and expire access tokens. In case of a compromised OAuth client this could lead to unauthorized access.

After working together with @noumar the issues have been resolved.

The original report as published on HackerOne, by noumar. 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 OAuth2 implementation did not enforce RFC6749 requirements for validating requests and for rotating and expiring access tokens.

Impact

If an OAuth client were compromised, this could lead to unauthorised access.

What the attacker needed

Compromised OAuth client

The fix

The issues have been resolved.

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.

OAuth2 is a way for apps to get permission to access your account without your password. This server did not check some data properly and did not make old access tokens expire, so if an app was hacked, the attacker might keep access. The issue has been fixed.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.