CVE-2020-25915: ThinkCMF Cross-site Scripting Vulnerability
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.61618%
CWE
Published
8/11/2023
Updated
11/9/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
thinkcmf/thinkcmf | composer | < 5.1.7 | 5.1.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized use of $_POST superglobal in database operations. The original code:
- In addPost(), used $_POST directly in insertGetId() without validation
- In editPost(), used $_POST directly in update() without filtering This allowed XSS payloads in user_login field to be stored and executed when rendered. The patch replaced $_POST with framework's param() method and added strict mode, indicating previous lack of input validation. The GitHub issue explicitly identifies these $_POST usages as vulnerable points for stored XSS.