LearnHouse Unrestricted File Upload Vulnerability in Course Thumbnail Handler

Vulnerability

A vulnerability allowing unrestricted file uploads has been identified in LearnHouse versions prior to commit 98dfad76aad70711a8113f6c1fdabfccf10509ca. The issue arises in the Course Thumbnail Handler within the file /api/v1/courses/. The vulnerability allows attackers to upload files by manipulating the thumbnail argument, bypassing client-side file type validations. This flaw can be exploited remotely and has been publicly disclosed.

Impact

Exploitation of this vulnerability leads to stored cross-site scripting (XSS) via uploaded SVG files, which can execute JavaScript when viewed. Additionally, it allows for the upload of server-side scripts, such as Python or PHP files, which could be executed if an appropriate execution vector exists, potentially leading to remote code execution (RCE).

Reproduction

To reproduce this vulnerability, upload a legitimate image file through the course thumbnail upload endpoint. Intercept the upload request and replace the image with an SVG file containing JavaScript, or a server-side script such as a Python or PHP file. After uploading, the SVG will execute JavaScript when accessed, demonstrating the stored XSS vulnerability. If a script file is uploaded, it can be executed on the server, showing the RCE risk.

Added: Oct 27, 2025, 12:25 PM
Updated: Oct 27, 2025, 2:59 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
0.0
relevance
0.8
threat
6.4
urgency
2.9
incentive
5.8

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