viernes, 7 de agosto de 2026

SQL Injection Escalates to SYSTEM Access via Oracle Java

A recent cyber incident highlights a concerning escalation path where a seemingly standard SQL injection vulnerability in an internet-facing application has led to attackers gaining SYSTEM-level command execution on a Windows server. This significant privilege escalation was not due to a new operating system flaw, but rather exploited a powerful, legitimate feature within Oracle Database: its capability to load, compile, and execute Java code directly within the database engine itself.

SQL Injection Escalates to SYSTEM Access via Oracle Java

The attackers, after initial access via SQL injection, introduced Java source code into the Oracle database schema. This code was then compiled and executed within the database server. This post-exploi tation technique is particularly insidious as it minimises reliance on traditional disk-based binaries and shifts operational tooling into the database engine, which often receives less scrutiny than the operating system or web server. The activity, linked to an artefact called 'khunt' and reported by Huntress, effectively turns an application-level entry point into a direct route for host-level actions.

When the Oracle process runs with elevated privileges on Windows, any commands executed from within the database's context can inherit these high privileges, up to SYSTEM. This poses a severe risk to the entire machine and its data. The incident underscores the critical importance of securing applications by preventing SQL injection through parameterized queries and strict input validation. Furthermore, if Java integration in Oracle is not essential, disabling or strictly limiting it is highly recommended to reduce the attack surface. Security teams should also implement robus t monitoring for Oracle database events like 'CREATE JAVA SOURCE' and 'CREATE JAVA CLASS' compilation, restrict DDL operations related to Java, enforce the principle of least privilege for database users, and harden the Windows host by ensuring the Oracle service does not run with unnecessary privileges.

Fuente Original: https://unaaldia.hispasec.com/una-inyeccion-sql-en-oracle-se-convierte-en-ejecucion-como-system-en-windows-con-java-dentro-de-la-base-de-datos/?utm_source=rss&utm_medium=rss&utm_campaign=una-inyeccion-sql-en-oracle-se-convierte-en-ejecucion-como-system-en-windows-con-java-dentro-de-la-base-de-datos

Artículos relacionados de LaRebelión:

Artículo generado mediante LaRebelionBOT

No hay comentarios:

Publicar un comentario