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

Constant Contact Forms < 1.8.8 - Multiple Authenticated Stored XSS

Description

Multiple stored cross-site scripting vulnerabilities in Constant Contact Forms for WordPress 1.8.7 and lower allow high-privileged user (Editor+) to inject arbitrary Javascript code or HTML in posts where the malicious form is embed.

Proof of Concept

High-privileged user (Editor+) can exploit XSS via Add New Form's form parameters:

- Button text
- Field Description

The stored script is executed for all the users visiting the website.

## Proof of Concept
1. Download and install "Constant Contact Forms for WordPress 1.8.7" from https://wordpress.org/plugins/constant-contact-forms/

2. Go into "Contact Form" tab from the sidebar and create a new form by clicking on the "Add New Form" button.

3. Input an XSS vector to "Button text", "Field Description" fields, for example:

" autofocus=true onfocus='alert(document.domain)'>

4. Save the changes and click on "Publish" (Editor role).
5. By visiting posts that have embedded shortcodes (Ex: `[ctct form="XXX"]`), the javaScript code injected would be executed. 

Affects Plugins

constant-contact-forms
Fixed in version 1.8.8

References

CVE
CVE-2021-24134
URL
https://plugins.trac.wordpress.org/changeset/2374154

Classification

Type

XSS

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

Miscellaneous

Original Researcher

Nguyen Anh Tien - SunCSR (Sun* Cyber Security Research)

Submitter

Nguyen Anh Tien

Submitter website
https://research.sun-asterisk.com/
Submitter twitter
https://twitter.com/vigov5
Verified

Yes

WPVDB ID
8f3cca92-d072-4806-9142-7f1a987f840b

Timeline

Publicly Published

2020-09-06 (about 1 years ago)

Added

2020-09-06 (about 1 years ago)

Last Updated

2021-01-21 (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 serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us