Oracle database code security

PL/SQL static code analysis

Find SQL injection, privilege escalation through AUTHID and GRANT, command injection through scheduler jobs, hardcoded secrets and weak cryptography in Oracle PL/SQL procedures, functions and packages.

Fix advice
Every finding with severity, fix recommendation and code location
43
languages in one platform, PL/SQL and T-SQL included
On-premise
or air-gapped: database code and findings stay on internal servers

In short

DerScanner static application security testing (SAST) scans PL/SQL, the procedural language of Oracle Database. Its PL/SQL rules are published in the DerScanner vulnerability database, and most of them map to CWE, OWASP Top 10 and PCI DSS 4.0.

The rules cover SQL and code injection, privilege issues such as an unspecified AUTHID or GRANT ALL, command injection through DBMS_SCHEDULER jobs, cursors left open, hardcoded passwords and keys, weak cryptography, and web output such as cross-site scripting, open redirects and cookie settings.

DerScanner runs on-premise, in air-gapped networks or in the cloud. For PL/SQL it provides security analysis (SAST) in the same project and report as the application code that calls the database.

What the PL/SQL rules check

The PL/SQL rules look at what makes database code dangerous: whose rights a procedure runs with, which queries take outside input, and which secrets sit in the source. Each rule links to its description, CWE identifiers and fix recommendation.

Injection

SQL injection, external C or Java code from untrusted sources, DBMS_SCHEDULER jobs built from outside input, and web output that allows cross-site scripting or open redirects.

Privileges and database configuration

Procedures without AUTHID, objects without a schema, GRANT ALL and GRANT EXECUTE, default accounts and SID values, file system access, and cursors another user can capture.

Secrets and cryptography

Passwords, keys and initialization vectors in the code, weak hashing, encryption and random numbers, and wrapping used as protection.

Web sessions

PL/SQL that serves web pages: plain HTTP and cookie settings.

Reliability and hidden code

Resource leaks, denial of service, empty exception handlers, NULL comparisons, error details and dead code.

See all PL/SQL rules in the vulnerability database

Where PL/SQL code runs

PL/SQL runs inside Oracle Database as procedures, functions and packages. Business rules often live there, next to the data, so a flaw in a package reaches the data directly.

Privileges decide the impact. A procedure defined by a powerful user and called without AUTHID CURRENT_USER runs with the definer rights, which is why the rule list starts with privileges as much as with injection.

Wrapped code is not protected code

Wrapping is the built-in obfuscation for PL/SQL. The rule Weak obfuscation (wrapping) flags it because the algorithm can be reversed with publicly available tools.

DerScanner reads PL/SQL source as it is, from a repository or an archive, and puts it in the same project as the Java, C# or Python services that call the database.

Questions buyers ask about PL/SQL static code analysis

Try DerScanner on your own code, free

Scan your own PL/SQL code and see what DerScanner finds in it.

Request a free pilot. We give you access and help with the first scan. It works in the cloud and on-premise.

Want to describe your project first? Take the 2-minute PoC survey

Get Started

Make Your Applications
Secure Today

Sign up for a personalized demo to see
how DerScanner can meet your Application Security needs

dashboard