CVE-2023-4779: User Submitted Posts – Enable Users to Submit Posts from the Front End <= 20230811 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode
The User Submitted Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's [uspgallery] shortcode in versions up to, and including, 20230811 due to insufficient input sanitization and output escaping on user supplied attributes like 'before'. This makes it possible for authenticated attackers with contributor-level and above permissions to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID of this vulnerability?
The vulnerability ID is CVE-2023-4779.
What is the title of this vulnerability?
The title of this vulnerability is 'The User Submitted Posts plugin for WordPress is vulnerable to Stored Cross-Site Scripting'.
What is the severity of CVE-2023-4779?
The severity of CVE-2023-4779 is medium with a severity value of 5.4.
How does the User Submitted Posts plugin for WordPress become vulnerable to Stored Cross-Site Scripting?
The vulnerability occurs due to insufficient input sanitization and output escaping on user supplied attributes like 'before' in the plugin's [usp_gallery] shortcode.
How can I fix the vulnerability CVE-2023-4779 in the User Submitted Posts plugin for WordPress?
To fix the vulnerability, you should update the User Submitted Posts plugin to a version higher than 20230811, which includes the necessary input sanitization and output escaping.