Skip to content
OAuth / SSO Disclosed report Beginner

Source Map Disclosure in Public API Endpoint on globe.gov

The OAuth2 implementation on globe.gov exposed the token endpoint, client_id, and client_secret in front-end JavaScript, and dynamically retrieved scopes were shown in the UI. An attacker could use these details to attempt token acquisition and privilege escalation.

sivasankardas Follow

Originally disclosed on Bugcrowd

Informational View original
  • Disclosed after 21 days

Summary by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

This is a function and nature of having an externally available authentication platform.

Summary by sivasankardas

OAuth Information Disclosure in Globe.gov A security issue was identified in the OAuth2 authentication implementation of globe.gov, where sensitive authentication-related information was exposed in the front-end JavaScript.

Issue Details: Exposure of OAuth Token URL: The token endpoint was visible in the front-end UI, making it potentially susceptible to misuse. Client Credentials Exposure: The client_id and client_secret were stored in JavaScript variables and could be accessed via browser Developer Tools. Overly Permissive OAuth Scopes: Scopes were dynamically retrieved from the API and displayed in the UI, which could allow unauthorized scope escalation. Potential Impact: An attacker with access to this information could attempt to exploit authentication mechanisms, obtain unauthorized tokens, and escalate privileges.

Remediation Recommendations: Remove sensitive OAuth details from client-side code. Securely store and manage client credentials on the server. Implement proper validation for OAuth scopes to prevent unauthorized privilege escalation. While this was categorized as an informational issue, it highlights the importance of securing authentication flows and minimizing client-side exposure of sensitive data.

The original report as published on Bugcrowd, by National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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 attacker with access to this information could attempt to exploit authentication mechanisms, obtain unauthorized tokens, and escalate privileges.

What the attacker needed

Access to the public website

The fix

Sensitive OAuth details should be removed from client-side code, client credentials should be stored and managed on the server, and OAuth scopes should be properly validated to prevent privilege escalation.

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.

OAuth is a way for apps to let you log in without sharing your password. Here, the app's secret password (client_secret) and other login details were left in the web page code that anyone can view. That means someone could try to pretend to be the app and get access tokens.

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 by sivasankardas

View all

7 more disclosed reports, best first.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

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.