WordPress Plugin Vulnerabilities
Popup Builder < 4.0.7 - LFI to RCE
Description
The plugin does not validate and sanitise the sgpb_type parameter before using it in a require statement, leading to a Local File Inclusion issue. Furthermore, since the beginning of the string can be controlled, the issue can lead to RCE vulnerability via wrappers such as PHAR
Proof of Concept
Create a zip archive with a Popup.php contains PHP code, upload it via a low privilege account (by default author and above can upload files, however the blog may allow subscriber to do so, via a plugin, form etc) https://example.com/index.php?sgpb_type=phar://wp-content/uploads/2021/12/1.zip/
Affects Plugins
References
Classification
Type
LFI
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
ZhongFu Su(JrXnm) of Wuhan University
Submitter
ZhongFu Su(JrXnm) of Wuhan University
Submitter website
Submitter twitter
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2022-01-24 (about 2 years ago)
Added
2022-01-24 (about 2 years ago)
Last Updated
2022-09-26 (about 1 years ago)