• Advisory ID: DRUPAL-SA-CONTRIB-2014-001
  • Project: Entity API (third-party module)
  • Version: 7.x
  • Date: 2014-January-08
  • Security risk: Moderately critical
  • Exploitable from: Remote
  • Vulnerability: Access bypass

Description

The Entity API module extends the entity API of Drupal core in order to provide a unified way to deal with entities and their properties.

Comment, User and Node Statistics property access bypass (CVE-2014-1398)

The module's entity wrapper access API doesn't sufficiently protect comment, user and node statistics properties from unprivileged user access.

This vulnerability is mitigated by the fact that a module must be enabled that relies on the Entity property access API and it must be configured to expose either comment, user or node statistics properties. One example would be the RESTful Web Services module (RESTWS) with the permission configured to access the comment, user or node resource for untrusted web service consumers.

Entity list property access bypass (CVE-2014-1399)

The module's entity wrapper access API doesn't sufficiently check entity access on referenced entities such as taxonomy terms.

This vulnerability is mitigated by the fact that a module must be enabled that uses the access() method of entity metadata wrappers to determine access to a property which references multiple entities to which access is not granted. One example would be the RESTful Web Services module (RESTWS) with respectively configured permissions on an entity property or (entity reference) field, for example a list of (unaccessible) referenced user entities on a node entity.

Unpublished comments access bypass (CVE-2014-1400)

The module's entity_access() API doesn't protect unpublished comments from being viewed by unprivileged users.

This vulnerability is mitigated by the fact a module must be enabled which uses the provided entity access API on comments and the comment module must be enabled.

CVE identifier(s) issued

  • CVE-2014-1398 (Comment, User and Node Statistics property access bypass)
  • CVE-2014-1399 (Entity list property access bypass)
  • CVE-2014-1400 (Unpublished comments access bypass)

Versions affected

  • Entity API 7.x-1.x versions prior to 7.x-1.3.

Drupal core is not affected. If you do not use the contributed Entity API module, there is nothing you need to do.

Solution

Install the latest version:

Also see the Entity API project page.

Reported by

  • The Comment, User and Node Statistics property access bypass was reported by Clemens Tolboom.
  • The Entity list property access bypass was reported by Neil Drumm of the Drupal Security Team.
  • The Unpublished comments access bypass was reported by Ezra Barnett Gildesgame.

Fixed by

Coordinated by

Contact and More Information

The Drupal security team can be reached at security at drupal.org or via the contact form at http://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