Description
The Antispam by CleanTalk module provides a SpamFireWall (SFW) feature that blocks visitors whose IP appears on CleanTalk's blacklist and serves them a 403 challenge page.
The module builds that page by substituting the raw request URI and the blocked IP address into the page template, where the request URI is emitted inside a single-quoted HTML attribute; because neither value is escaped, a crafted request URI can break out of the attribute and run arbitrary script in the visitor's browser.
This vulnerability is mitigated by the fact that the SpamFireWall feature is not enabled by default and the targeted visitor's IP address must already be blocked by the firewall for the malicious page to be rendered.
Solution
Install the latest version.
If you use the Anti-Spam by CleanTalk module for Drupal 7, upgrade to cleantalk 7.x-6.2:
Reported by
- Drew Webber (mcdruid) of the Drupal Security Team
Fixed by
- glomberg
- Drew Webber (mcdruid) of the Drupal Security Team
- sergefcleantalk
- André Angelantoni (aangel)
- Tag1 D7ES
Coordinated by
- Damien McKenna (damienmckenna) of the Drupal Security Team
- Greg Knaddison (greggles) of the Drupal Security Team
- Drew Webber (mcdruid) of the Drupal Security Team
- Juraj Nemec (poker10) of the Drupal Security Team
- Jess (xjm) of the Drupal Security Team
- Tag1 D7ES