Lucene search

K
drupalDrupal Security TeamDRUPAL-SA-CONTRIB-2012-156
HistoryOct 17, 2012 - 12:00 a.m.

SA-CONTRIB-2012-156 - Search API - Cross Site Request Forgery (CSRF)

2012-10-1700:00:00
Drupal Security Team
www.drupal.org
6

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

EPSS

0.002

Percentile

52.8%

This module enables you to build searches using a wide range of features, data sources and backends.

The module doesn’t sufficiently guard the “enable index” action against Cross Site Request Forgery (CSRF) attacks which could allow an attacker to enable existing search indexes on your site.

This vulnerability is mitigated by the fact that the attacker would need to guess the machine name or ID of a disabled index or server, and a disabled index would have to be connected to an enabled server for the operation to be successful. The impact from such an enabled index has little effect besides using additional resources for indexing because search pages or views related to the index are not automatically enabled. The enabling of a server has no effect unless existing indexes assigned to that server are subsequently enabled as well.

CVE: CVE-2012-5547

Versions affected

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

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

Solution

Install the latest version:

  • If you use the Search API module for Drupal 7.x, upgrade to Search API 7.x-1.3

Alternatively, you can remove the vulnerability without upgrading by moving disabled indexes away from servers:

  • If you have disabled indexes, set them to “< No server >” in the index settings.

Also see the Search API project page.

Reported by

  • Ivo Van Geertruyen (mr.baileys) of the Drupal Security Team

Fixed by

  • Ivo Van Geertruyen (mr.baileys) of the Drupal Security Team

Coordinated by

  • Ivo Van Geertruyen (mr.baileys) and Klaus Purer (klausi) of the Drupal Security Team

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

EPSS

0.002

Percentile

52.8%

Related for DRUPAL-SA-CONTRIB-2012-156