WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

WP Prayer < 1.6.2 - Authenticated Stored Cross-Site Scripting (XSS)

Description

The plugin provides the functionality to store requested prayers/praises and list them on a WordPress website. These stored prayer/praise requests can be listed by using the WP Prayer engine. An authenticated WordPress user with any role can fill in the form to request a prayer. The form to request prayers or praises have several fields. The 'prayer request' and 'praise request' fields do not use proper input validation and can be used to store XSS payloads. 

Proof of Concept

1. Create a user with role 'subscriber'
2. Install WP Prayer 1.5.5 and create a page with a [wp-prayer-engine form] and a page with [wp-prayer-engine]
2. Log into the website with the subcriber user
3. Go to the page [wp-prayer-engine form] and fill in the fields
4. In the 'prayer request' field put the following: <script>alert("XSS")</script>
5. Submit the form
6. Go to the page with the [wp-prayer-engine] or the "Manage Prayers" admin dashboard (wp-admin/admin.php?page=wpe_manage_prayer)
7. XSS payload will be triggered 

Affects Plugins

wp-prayer
Fixed in version 1.6.2

References

CVE
CVE-2021-24313
URL
https://plugins.trac.wordpress.org/changeset/2531964/
URL
https://bastijnouwendijk.com/cve-2021-24313/

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Bastijn Ouwendijk

Submitter

Bastijn Ouwendijk

Submitter website
https://bastijnouwendijk.com
Verified

Yes

WPVDB ID
c7ab736d-27c4-4ec5-9681-a3f0dda86586

Timeline

Publicly Published

2021-05-17 (about 1 years ago)

Added

2021-05-17 (about 1 years ago)

Last Updated

2021-06-17 (about 1 years ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us