Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Attack Patterns CAPEC-470 — Expanding Control over the Operating System from the Database
CAPEC-470

Expanding Control over the Operating System from the Database

TLP:CLEAR

Description

Typical severity: Very High. An attacker is able to leverage access gained to the database to read / write data to the file system, compromise the operating system, create a tunnel for accessing the host machine, and use this access to potentially attack other machines on the same network as the database machine. Traditionally SQL injections attacks are viewed as a way to gain unauthorized read access to the data stored in the database, modify the data in the database, delete the data, etc. However, almost every data base management system (DBMS) system includes facilities that if compromised allow an attacker complete access to the file system, operating system, and full access to the host running the database. The attacker can then use this privileged access to launch subsequent attacks. These facilities include dropping into a command shell, creating user defined functions that can call system level libraries present on the host machine, stored procedures, etc.

Mitigation

Design: Follow the defensive programming practices needed to protect an application accessing the database from SQL injection | Configuration: Ensure that the DBMS is patched with the latest security patches | Design: Ensure that the DBMS login used by the application has the lowest possible level of privileges in the DBMS | Design: Ensure that DBMS runs with the lowest possible level of privileges on the host machine and that it runs as a separate user | Usage: Do not use the DBMS machine for anything else other than the database

Details

Platforms
Software
Added
Jul 14, 2026
Leaving Threaticon

This link opens an external site that isn't part of the platform.