Git Product home page Git Product logo

cve-2019-17240_bludit-bf-bypass's Introduction

CVE-2019-17240 Exploit/PoC - Bludit Brute-force Mitigation Bypass

Exploit Code for CVE-2019-17240 aka Bludit <= 3.9.2 Bruteforce Mitigation Bypass

Exploit Links: [ExploitDB-48942] [PacketStorm]

Expected outcome: Discover login credentials, bypassing Brute-force Mechanism on host running Bludit <=3.9.2

Intended only for educational and testing in corporate environments.

This Exploit was tested on Python 3.8.6

Usage

cfx:  ~/bludit 
โ†’ ./exploit.py -h
usage: exploit.py [-h] [-l URL] [-u USERLIST] [-p PASSLIST]

Bludit <= 3.9.2 Auth Bruteforce Mitigation Bypass

optional arguments:
  -h, --help            show this help message and exit
  -l URL, --url URL     Path to Bludit (Example: http://127.0.0.1/admin/login.php)
  -u USERLIST, --userlist USERLIST
                        Username Dictionary
  -p PASSLIST, --passlist PASSLIST
                        Password Dictionary

Exploit Usage : 
./exploit.py -l http://127.0.0.1/admin/login.php -u user.txt -p pass.txt
./exploit.py -l http://127.0.0.1/admin/login.php -u /Directory/user.txt -p /Directory/pass.txt
  • Make sure Python3 is installed with following additional modules:

Additional required Python modules :

  • requests
  • pwn

Installation:

pip3 install pwn
pip3 install requests

Proof of Concept :

This exploit expects three user inputs :

  • URL : Login Page url
  • User.txt : Potential list of Usernames, for PoC purpose we have single username in user.txt
  • Pass.txt : Dictionary with list of Passwords

Executing exploit

Exploit usage where the username inside user.txt is mapped against every password inside pass.txt and sent to login:

execute

Word Block

Values are sent into X-Forwarded-For header from pass.txt, if the list contains less number of passwords chances are there that a word gets blocked by the server, in that case the script will show the blocked word in the output:

block

Successful Output

On successful login, following output with working credentials would be shown:

success

Reference

This is an exploit for the vulnerability found by Rastating on Bludit CMS.

Vulnerability explanation: https://rastating.github.io/bludit-brute-force-mitigation-bypass/.

Patch: bludit/bludit#1090

cve-2019-17240_bludit-bf-bypass's People

Stargazers

 avatar

Watchers

 avatar

cve-2019-17240_bludit-bf-bypass's Issues

UnicodeDecodeError

kali@kali:~/Downloads/CVE-2019-17240_Bludit-BF-Bypass$ python3 exploit.py -l http://10.10.10.191/admin/login.php -u ~/Downloads/user.txt -p /usr/share/wordlists/rockyou.txt
[*] Bludit Auth BF Mitigation Bypass Script by ColdFusionX

Traceback (most recent call last):
File "/home/kali/Downloads/CVE-2019-17240_Bludit-BF-Bypass/exploit.py", line 99, in
passfile = open(Password_list).readlines()
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 933: invalid continuation byte

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.