CVE-2020-15159: Cross Site Scripting and RCE in baserCMS
7.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.80887%
CWE
Published
8/28/2020
Updated
1/9/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
baserproject/basercms | composer | >= 4.0.0, <= 4.3.6 | 4.3.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The RCE vulnerability stems from the UploaderFile model's validation logic, which did not restrict file uploads for admin users (allowing arbitrary extensions like PHP). The XSS occurs in ThemeFilesController's views due to unescaped output of the $currentPath
variable. The commit diff confirms these fixes: adding h($currentPath)
in views and introducing allowedAdmin
configuration to enforce validation for admins.