- Advisory ID: DRUPAL-SA-CONTRIB-2017-017
- Project: Flag clear (third-party module)
- Version: 7.x
- Date: 2017-February-15
- Security risk: 10/25 ( Moderately Critical) AC:Basic/A:Admin/CI:None/II:Some/E:Theoretical/TD:All
- Vulnerability: Cross Site Request Forgery
Description
The Flag clear module allows administrators to remove user flags for content. This functionality is often useful in user-submission use-cases, where users do not necessarily need to unflag things on their own.
The module doesn’t sufficiently protect from CSRF attacks. The unflagging links do not include a token.
This vulnerability is mitigated by the fact that an attacker must be targeting users with the ‘clear flags’ role. They must also discover a valid combination of flag, content and user IDs for flagged content.
CVE identifier(s) issued
- A CVE identifier will be requested, and added upon issuance, in accordance with Drupal Security Team processes.
Versions affected
- All Flag clear module versions prior to 7.x-2.0.
Drupal core is not affected. If you do not use the contributed Flag clear module, there is nothing you need to do.
Solution
Install the latest version:
- If you use the Flag clear module for Drupal 7.x, upgrade to Flag clear 7.x-2.0
Also see the Flag clear project page.
Reported by
- Neil Drumm of the Drupal Security Team
Fixed by
- Zak Huber the module maintainer
Coordinated by
- Peter Wolanin of the Drupal Security Team
Contact and More Information
The Drupal security team can be reached at security at drupal.org or via the contact form at https://www.drupal.org/contact.
Learn more about the Drupal Security team and their policies, writing secure code for Drupal, and securing your site.
Follow the Drupal Security Team on Twitter at https://twitter.com/drupalsecurity