vendor:
WPSchoolPress
by:
Davide Taraschi
4.8
CVSS
MEDIUM
Cross Site Scripting (XSS)
79
CWE
Product Name: WPSchoolPress
Affected Version From: 2.1.16
Affected Version To: 2.1.17
Patch Exists: YES
Related CWE: CVE-2021-24664
CPE: a:wpschoolpress:wpschoolpress:2.1.16
Platforms Tested: Ubuntu 20.04 over WordPress 5.8 and apache2
2021
WordPress Plugin WPSchoolPress 2.1.16 – ‘Multiple’ Cross Site Scripting (XSS)
The plugin sanitise some fields using a wordpress built-in function called sanitize_text_field() but does not correctly escape them before outputting in attributes, resulting in Stored Cross-Site Scripting issues. The function wp_sanitize_text_field() escape < and > but does not escape characters like ", allowing an attacker to break a HTML input tag and inject arbitrary javascript.
Mitigation:
Ensure that all user-supplied input is properly sanitized and escaped before outputting in attributes.