CVE-2023-3815 y_project RuoYi File Upload uploadFilesPath cross site scripting
Remote attackers can execute arbitrary scripts via the file upload component in RuoYi, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-3815?
CVE-2023-3815 is a low-severity cross-site scripting vulnerability in Ruoyi Ruoyi, published on 21 Jul 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A vulnerability, which was classified as problematic, has been found in y_project RuoYi up to 4.7.7. Affected by this issue is the function uploadFilesPath of the component File Upload. The manipulation of the argument originalFilenames leads to cross site scripting. The attack may be launched remotely. VDB-235118 is the identifier assigned to this vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2023-3815?
2 open source packages ship an affected version, including com.ruoyi:ruoyi. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.ruoyi:ruoyi Maven | All versions to 4.7.7 | None |
com.ruoyi:ruoyi Maven | All versions to 4.7.7 | None |
Products include Ruoyi Ruoyi.
How do I fix CVE-2023-3815?
No fix has been published for CVE-2023-3815 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2023-3815 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-3815 exists.
Other vulnerabilities in Ruoyi Ruoyi
Sources
Also known as GHSA-p4ww-j4pr-qw6q.