Elasticsearch
ESElastic SearchELK
Elasticsearch is a distributed search and analytics engine. Exposed instances without authentication allow data exfiltration and potential RCE via scripting.
Ports
| Port | Protocol | Description |
|---|---|---|
| 9200 | tcp | Elasticsearch HTTP |
| 9300 | tcp | Elasticsearch transport |
Fingerprints
| Banner / Probe | Expected Response |
|---|---|
nmap -sV -p <port> <target> | Service banner and version info |
nc -nv <target> <port> | Raw banner grab |
Key Files
| Path | Description |
|---|---|
/etc/mysql/mysql.cnf | MySQL client configuration |
/var/lib/mysql/mysql/user.MYD | MySQL user table data |
postgresql.conf | PostgreSQL configuration file |
pg_hba.conf | PostgreSQL client authentication rules |
mongod.conf | MongoDB daemon configuration |
Default Credentials
| Username | Password | Context |
|---|---|---|
admin | admin | Generic admin account |
root | root | Generic root account |
Known CVEs
| Identifier | Type | Description |
|---|---|---|
CVE-2014-3120 | RCE | Elasticsearch dynamic scripting RCE |
CVE-2015-1427 | RCE | Groovy scripting RCE |
Exploitation Primitives
| Technique | Tool / Command | Result |
|---|---|---|
| Recon | nmap -sV -sC -p- <target> | Full port/service scan |
| Enumeration | nmap --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