GHSA-qv4m-m73m-8hj7: NotrinosERP: Authenticated arbitrary file upload leads to remote code execution via HRM employee "Documents" (doc_file)
An authenticated user with the HR "Manage Employees" permission (SA_EMPLOYEE) in NotrinosERP version 1.0.0 and earlier can upload arbitrary files through the employee Documents tab. The uploaded file is saved under the web root with the original filename and extension intact, without any validation or sanitization, allowing a .php file to be uploaded and executed. This leads to remote code execution on the server. The vulnerability also allows path traversal via crafted filenames. The uploaded file's URL is exposed unescaped in the UI, facilitating exploitation. The vulnerability requires authentication and a valid CSRF token but no further file validation is performed.
AI Analysis
Technical Summary
NotrinosERP versions up to 1.0.0 contain a vulnerability in the HR module's employee document upload functionality. Authenticated users with the SA_EMPLOYEE permission can upload files with arbitrary extensions, including .php, which are stored under the web root without extension or MIME type validation. The upload handler uses the client-supplied filename verbatim, enabling remote code execution by accessing the uploaded PHP file. The application does not sanitize or restrict file extensions, nor does it prevent path traversal via crafted filenames. The uploaded file's path is displayed unescaped in the UI, exposing the exact URL for exploitation. The vulnerability requires authentication and a valid CSRF token but no file content checks are performed.
Potential Impact
Successful exploitation allows any authenticated user with the SA_EMPLOYEE permission to execute arbitrary PHP code on the server hosting NotrinosERP, resulting in full remote code execution. This compromises the confidentiality, integrity, and availability of the server and potentially the entire application environment. The vulnerability also introduces a stored cross-site scripting (XSS) vector due to unescaped output of the file path. The attack surface is limited to authenticated users with specific HR permissions, but these permissions may be delegated or assigned to non-administrators depending on deployment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict the assignment of the SA_EMPLOYEE permission to trusted users only. As a temporary mitigation, implement server-side controls to block execution of uploaded files in the documents directory, such as web server configuration to deny execution of .php files in the upload path. Additionally, consider applying input validation to restrict allowed file extensions and sanitize filenames. Monitor vendor channels for an official patch or update addressing this issue.
GHSA-qv4m-m73m-8hj7: NotrinosERP: Authenticated arbitrary file upload leads to remote code execution via HRM employee "Documents" (doc_file)
Description
An authenticated user with the HR "Manage Employees" permission (SA_EMPLOYEE) in NotrinosERP version 1.0.0 and earlier can upload arbitrary files through the employee Documents tab. The uploaded file is saved under the web root with the original filename and extension intact, without any validation or sanitization, allowing a .php file to be uploaded and executed. This leads to remote code execution on the server. The vulnerability also allows path traversal via crafted filenames. The uploaded file's URL is exposed unescaped in the UI, facilitating exploitation. The vulnerability requires authentication and a valid CSRF token but no further file validation is performed.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NotrinosERP versions up to 1.0.0 contain a vulnerability in the HR module's employee document upload functionality. Authenticated users with the SA_EMPLOYEE permission can upload files with arbitrary extensions, including .php, which are stored under the web root without extension or MIME type validation. The upload handler uses the client-supplied filename verbatim, enabling remote code execution by accessing the uploaded PHP file. The application does not sanitize or restrict file extensions, nor does it prevent path traversal via crafted filenames. The uploaded file's path is displayed unescaped in the UI, exposing the exact URL for exploitation. The vulnerability requires authentication and a valid CSRF token but no file content checks are performed.
Potential Impact
Successful exploitation allows any authenticated user with the SA_EMPLOYEE permission to execute arbitrary PHP code on the server hosting NotrinosERP, resulting in full remote code execution. This compromises the confidentiality, integrity, and availability of the server and potentially the entire application environment. The vulnerability also introduces a stored cross-site scripting (XSS) vector due to unescaped output of the file path. The attack surface is limited to authenticated users with specific HR permissions, but these permissions may be delegated or assigned to non-administrators depending on deployment.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict the assignment of the SA_EMPLOYEE permission to trusted users only. As a temporary mitigation, implement server-side controls to block execution of uploaded files in the documents directory, such as web server configuration to deny execution of .php files in the upload path. Additionally, consider applying input validation to restrict allowed file extensions and sanitize filenames. Monitor vendor channels for an official patch or update addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qv4m-m73m-8hj7
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a520eb368715ace438f5266
Added to database: 07/11/2026, 09:36:51 UTC
Last enriched: 07/11/2026, 09:49:41 UTC
Last updated: 07/12/2026, 03:33:07 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.