CVE-2026-10806
Unrestricted File Upload in Stumasy Application
Publication date: 2026-06-04
Last updated on: 2026-06-04
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| mjperpinosa | stumasy | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-284 | The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. |
| CWE-434 | The product allows the upload or transfer of dangerous file types that are automatically processed within its environment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an unrestricted file upload issue in the stumasy application, specifically in the file upload functionality of add_post.php and Updates_controller.php.
The application attempts to validate uploaded files by checking MIME types or file extensions against a whitelist, but the validation logic uses the OR operator incorrectly. This allows an attacker to bypass the checks by uploading a PHP file with a forged MIME type (e.g., application/pdf) and a .php extension.
The uploaded malicious PHP file is then moved to a web-accessible directory without proper sanitization, enabling path traversal and direct execution of the malicious code.
An attacker can upload a PHP web shell via a crafted POST request and execute it by accessing the file through a URL, resulting in Remote Code Execution (RCE).
How can this vulnerability impact me? :
This vulnerability can have serious impacts as it allows an attacker to remotely upload and execute malicious PHP code on the server.
By exploiting this, an attacker can gain unauthorized control over the affected system, potentially leading to data theft, data manipulation, service disruption, or further attacks within the network.
The ability to execute arbitrary code remotely (Remote Code Execution) significantly increases the risk of compromise and damage to the system and its data.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for suspicious file upload activity, especially POST requests targeting the add_post.php endpoint with files that have PHP extensions but forged MIME types.
One way to detect exploitation attempts is to look for HTTP POST requests uploading files with .php extensions or unusual MIME types to the application/PHP/objects/updates/add_post.php path.
- Use web server logs to search for POST requests to add_post.php with .php file uploads.
- Example command to search Apache logs for suspicious uploads: grep -i 'POST /application/PHP/objects/updates/add_post.php' /var/log/apache2/access.log | grep '.php'
- Use network monitoring tools or IDS/IPS to detect HTTP POST requests containing PHP files with forged MIME types such as 'application/pdf'.
- Check the web-accessible upload directories for unexpected PHP files that could be web shells.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include disabling or restricting file uploads to the vulnerable add_post.php functionality.
Ensure that file upload validation uses strict AND logic for MIME type and file extension checks, not OR, to prevent bypass.
Sanitize and validate all uploaded files rigorously, disallowing executable file types such as PHP.
Restrict permissions on upload directories to prevent execution of uploaded files.
Monitor and remove any suspicious PHP files found in upload directories.
Apply any available patches or updates from the vendor or project as soon as they become available.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability allows unrestricted file upload leading to remote code execution, which can compromise the confidentiality, integrity, and availability of data handled by the affected application.
Such a security flaw can result in unauthorized access to sensitive information, potentially violating data protection regulations like GDPR and HIPAA that require safeguarding personal and health data.
Failure to prevent such attacks may lead to non-compliance with these standards due to inadequate security controls and risk management.