(Pwn2Own) Oracle Autonomous AI Database ORDS AutoUpgrade Servlet Command Injection Remote Code Execution Vulnerability
The AutoUpgrade servlet in Oracle REST Data Services fails to validate a configuration property before using it to build an OS command. An attacker who bypasses authentication could combine this with other flaws to run code as the oracle service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Oracle Autonomous AI Database. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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
Impact
An attacker could execute arbitrary code in the context of the oracle service account, but only after bypassing authentication and likely chaining with other vulnerabilities.
What the attacker needed
Authentication bypass; chaining with other vulnerabilities
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.
A web component takes a setting from its configuration and uses it to build a command for the operating system without checking it first. If an attacker can control that setting, they can make the server run their own commands. The report says authentication is needed but can be bypassed, so the attacker first gets past the login.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.