Back to services
database9042/tcp

Cassandra

Apache CassandraNoSQLCassandra DB

Apache Cassandra is a distributed NoSQL database. Exposed JMX and CQL ports without authentication allow data exfiltration and RCE.

Ports

PortProtocolDescription
9042tcpCQL native transport
9160tcpThrift API
7000tcpCassandra inter-node
7199tcpJMX
9142tcpCQL SSL

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
/etc/mysql/mysql.cnfMySQL client configuration
/var/lib/mysql/mysql/user.MYDMySQL user table data
postgresql.confPostgreSQL configuration file
pg_hba.confPostgreSQL client authentication rules
mongod.confMongoDB daemon configuration

Default Credentials

UsernamePasswordContext
adminadminGeneric admin account
rootrootGeneric root account

Known CVEs

IdentifierTypeDescription
InfoCheck NVD database for latest CVEs

Exploitation Primitives

TechniqueTool / CommandResult
Reconnmap -sV -sC -p- <target>Full port/service scan
Enumerationnmap --script <service>-* -p <port> <target>Service-specific NSE scripts

Notes

Always start with full port scan: `nmap -sV -sC -p- <target>`.

Check for default credentials before brute-forcing.

Use service-specific NSE scripts: `nmap --script <service>-* -p <port> <target>`.

Remember to check both IPv4 and IPv6 if applicable.

Seen on

ShodanCensysFOFAZoomEye

References