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

RSFirewall < 1.1.25 - IP Block Bypass

Description

RSFirewall tries to identify the original IP address by looking at different HTTP headers. A bypass is possible due to the way it is implemented.
Although it is fixed on version 1.1.25, the fix will only affect new installations. We recommend existing users to review the HTTP headers set for proper IP identification.

Proof of Concept

Go to https://example.com/wp-admin/post-new.php?post_type=rsf_lists

Add 123.123.123.123 as IP Address and select Blocklist for the List Type. Submit the form.

Blocked:
curl -I -H 'X-REAL-IP: 123.123.123.123' -H 'User-Agent: Chrome'  https://example.com

Not blocked:
curl -I -H 'X-REAL-IP: 123.123.123.124' -H 'User-Agent: Chrome'  https://example.com 

Affects Plugins

rsfirewall
Fixed in version 1.1.25

References

CVE
CVE-2021-4226

Classification

Type

BYPASS

Miscellaneous

Original Researcher

Daniel Ruf

Submitter

Daniel Ruf

Submitter website
https://daniel-ruf.de
Verified

Yes

WPVDB ID
c0ed80c8-ebbf-4ed9-b02f-31660097c352

Timeline

Publicly Published

2022-04-13 (about 11 months ago)

Added

2022-04-13 (about 11 months ago)

Last Updated

2022-04-18 (about 11 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