Vulnerability Details : CVE-2023-4760
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.
Vulnerability category: Directory traversalExecute code
Products affected by CVE-2023-4760
- Eclipse » Remote Application PlatformVersions from including (>=) 3.0.0 and up to, including, (<=) 3.25.0cpe:2.3:a:eclipse:remote_application_platform:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-4760
0.71%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 81 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-4760
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.6
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
2.8
|
4.7
|
Eclipse Foundation | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2023-4760
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by:
- emo@eclipse.org (Secondary)
- nvd@nist.gov (Primary)
-
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.Assigned by: emo@eclipse.org (Secondary)
References for CVE-2023-4760
-
https://github.com/eclipse-rap/org.eclipse.rap/pull/141
Fix handling of file names on Windows by ifurnadjiev · Pull Request #141 · eclipse-rap/org.eclipse.rap · GitHubIssue Tracking;Patch
-
https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/160
rt.rap: RCE on RAP File Upload (#160) · Issues · Eclipse Projects Security / vulnerability-reports · GitLabExploit;Issue Tracking
Jump to