This document discusses hacking Oracle databases from web applications. It describes how SQL injection vulnerabilities in web apps connected to Oracle databases can be used to escalate privileges and execute operating system commands. Specifically, it outlines how the dbms_xmlquery.newcontext() and dbms_xmlquery.getxml() functions allow executing arbitrary PL/SQL, which can then exploit other vulnerabilities to gain DBA access privileges and run operating system code. Examples are provided that demonstrate exploiting vulnerabilities to gain DBA privileges and executing Metasploit payloads on the database server.