CVE-2023-4760
Summary
| CVE | CVE-2023-4760 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-09-21 08:15:00 UTC |
| Updated | 2023-09-26 14:09:00 UTC |
| Description | In Eclipse RAP versions from 3.0.0 up to and including 3.25.0, Remote Code Execution is possible on Windows when using the FileUpload component. The reason for this is a not completely secure extraction of the file name in the FileUploadProcessor.stripFileName(String name) method. As soon as this finds a / in the path, everything before it is removed, but potentially \ (backslashes) coming further back are kept. For example, a file name such as /..\..\webapps\shell.war can be used to upload a file to a Tomcat server under Windows, which is then saved as ..\..\webapps\shell.war in its webapps directory and can then be executed. |
Risk And Classification
Problem Types: CWE-22
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Eclipse | Remote Application Platform | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Fix handling of file names on Windows by ifurnadjiev · Pull Request #141 · eclipse-rap/org.eclipse.rap · GitHub | MISC | github.com | |
| rt.rap: RCE on RAP File Upload (#160) · Issues · Eclipse Projects Security / vulnerability-reports · GitLab | MISC | gitlab.eclipse.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.