Professional Documents
Culture Documents
ELASTIC SEARCH
BY CHANDRAKANT NIAL YOUTUBE.COM/INFOCK
TOP 5 WAY TO PENTEST ELASTIC SEARCH
• Port 9200/TCP
• Manual Enumeration http://100.100.100.100:9200/
AUTHENTICATION ?
Source : https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html
INDICES
• http://100.100.100.100:9200/_cat/indices?v
DUMP ALL
CONTENTS
• http://host:9200/<index>/_search?
pretty=true
• http://100.100.100.115:9200/facebo
ok/_search?pretty=true
FUZZING (HORUZ CLI TO INTERACT WITH ELASTICSEARCH)
https://github.com/misalabs/horuz
CHECK FOR WRITE PERMISSION
• curl -X POST '10.10.10.115:9200/bookindex/books' -H 'Content-Type: application/json' -d'
• {
• "bookId" : "A00-3",
• "author" : "Sankaran",
• "publisher" : "Mcgrahill",
• }'
AUTOMATIC
ENUMERATION
• msf > use
auxiliary/scanner/elasticsearch/indic
es_enum
• https://github.com/theMiddleBlue/n
map-elasticsearch-nse
THANKS
• https://github.com/theMiddleBlue/nmap-elasticsearch-nse
• https://www.rapid7.com/db/modules/auxiliary/scanner/elasticsearch/indices_enum