Bypassing Okta SSO=> HTTPS/HTTP
An internal Yahoo host was protected by Okta SSO over HTTPS, but the same content was accessible over plain HTTP without authentication. An attacker could view the page directly by using the HTTP URL instead of HTTPS.
Published on rashahacks.com
When doing recon on Yahoo assets during Hackerone AWC 2023, I found a host foo.bar.yahoo.com. I thought it must be some internal tool for engineers, few pages are listed but clicking on any of the pages redirects to Okta SSO.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a server misconfiguration where the authentication check was only applied to HTTPS traffic, not HTTP.
Impact
An attacker could access the internal page without authentication, potentially viewing sensitive information or ad traffic content.
What the attacker needed
Knowledge of the hostname; No authentication required
The fix
The issue was resolved, likely by enforcing authentication on HTTP as well or redirecting HTTP to HTTPS.
How it was found
- Check the hostname on the Wayback Machine.
- Find an indexed page on the host.
- Visit the page and observe it redirects to Okta SSO.
- Probe both HTTPS and HTTP ports with httpx.
- Notice the HTTP version also appears in results.
- Compare Content-Length of both pages and find they differ.
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 write-up has not been written yet. The Original tab links to the source.
Okta SSO is a login system that checks who you are before letting you see a page. Here, the page was supposed to be protected, but the protection only worked on the secure version of the site (HTTPS). By using the insecure version (HTTP), anyone could see the page without logging in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.