(Pwn2Own) Oracle Autonomous AI Database ORDS APEX SSO Exchange Token Authentication Bypass Vulnerability
The ORDS APEX SSO exchange token mechanism in Oracle Autonomous AI Database did not check authorisation before granting access to functionality. A remote, unauthenticated attacker could exploit this to bypass authentication and run arbitrary code as the ADMIN database user.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to bypass authentication on affected installations of Oracle Autonomous AI Database. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing authorisation check in the ORDS APEX SSO token exchange, so a token could be exchanged for access without verifying the requester's rights.
Impact
An unauthenticated remote attacker could bypass authentication and execute arbitrary code in the context of the ADMIN database user.
What the attacker needed
Network access to the ORDS endpoint; no authentication required
The fix
Oracle issued an update to correct the vulnerability.
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.
Single sign-on (SSO) lets one login be reused across applications, and a token is a short piece of data that proves who you are. Here, the component that swaps one token for another did not check whether the person was allowed to do so, so someone with no account could get in. The advisory says this could let an attacker act as the database's most powerful built-in user.
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.