Oracle TNS (Transparent Network Substrate) runs on TCP port 1521 and handles connections to Oracle Database instances. Nmap identifies it as oracle-tns. Oracle databases are common in large enterprises, government systems, and financial infrastructure.
The TNS listener reveals version information and registered SIDs (Service Identifiers), which are required to connect to a specific database instance. Default credentials for accounts like SCOTT/TIGER, SYS, and SYSTEM are still found in production. Once authenticated, Oracle's PL/SQL engine and Java components can be leveraged for OS command execution and privilege escalation.
Enumerate SIDs with odat, tnscmd10g, or Nmap's oracle-sid-brute script. Test default credentials with odat or hydra. After authentication, check for command execution via DBMS_SCHEDULER, Java stored procedures, or external tables. Look for sensitive data and linked database connections.
Enumeration
Guides for enumerating Oracle TNS listeners, SIDs, and services
Oracle Listener Enumeration with ODAT
tnsping and sqlplus Connectivity Checks
Vulnerability Discovery
Test Oracle DBs for weak creds on SYS, SYSTEM, SCOTT accounts
Oracle Weak Credential Testing
Exploitation
SQL exec, file read, OS commands, and shell via Oracle DB