Vulnerability Note VU#795644

Esri ArcGIS server 10.1 contains a blind SQL injection vulnerability

Original Release date: 09 Nov 2012 | Last revised: 19 Nov 2012

Overview

Esri's ArcGIS server version 10.1 contains a blind SQL injection vulnerability that allows remote attackers to execute a subset of SQL commands via a query operation where clause.

Description

The Esri ArcGIS server version 10.1 contains a blind SQL injection vulnerability (CWE-89) for REST service queries. The where form field when constructing a query does not properly sanitize SQL commands from the input.

Proof-of-Concept:
http://<FQDN/IP>:6080/arcgis/rest/services/<SERVICE WITH QUERY SUPPORT>/query?f=json&where=featured%3Dtrue&returnGeometry=true&spatialRel=esriSpatialRelIntersects

Impact

A remote authenticated attacker may be able to run a subset of SQL commands against the back-end database.

Solution

Apply an Update

Esri released an update to ArcGIS Server 10.1 Service Pack 1. If you cannot patch, please consider the following workarounds.

Disable the query

The query operation may be disabled via ArcGIS Manager for each service.

Restrict access

As a general good security practice, only allow connections from trusted hosts and networks. Note that restricting access does not prevent SQLi attacks since the attack comes as an SQL request from a legitimate user's host. Restricting access would prevent an attacker from accessing a web interface using stolen credentials from a blocked network location.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
Environmental Systems Research Institute IncAffected25 Sep 201207 Nov 2012
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P
Temporal 5.9 E:POC/RL:U/RC:C
Environmental 4.4 CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

Credit

Thank you to the reporter that wishes to remain anonymous.

This document was written by Jared Allar.

Other Information

  • CVE IDs: CVE-2012-4949
  • Date Public: 29 Oct 2012
  • Date First Published: 09 Nov 2012
  • Date Last Updated: 19 Nov 2012
  • Document Revision: 31

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.