MrDoc Server-Side Request Forgery Vulnerability

Vulnerability

A Server-Side Request Forgery (SSRF) vulnerability has been identified in MrDoc versions through 0.95. The issue arises in the validate_url function within the app_doc/utils.py file, allowing attackers to manipulate the server into making requests to internal or external systems.

Impact

Exploitation of this vulnerability allows for Server-Side Request Forgery, where an attacker can induce the server to make requests on their behalf, potentially leading to unauthorized access to internal resources or information.

Reproduction

To reproduce this vulnerability, log into the application to obtain a valid cookie. Then, send a POST request to the /upload_doc_img/ endpoint with a JSON payload containing a URL, such as http://127.0.0.2. This request will be processed by the validate_url function, where the SSRF vulnerability can be exploited.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
4.6
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.