Body Background
TrendAI™ Zero Day Initiative™ Logo

SAP SQL Anywhere .NET Data Provider REPLICATE Function Heap Overflow Code Execution Vulnerability

December 9th, 2014

Vulnerability Details


This allows attackers to execute arbitrary code on applications which pass user provided data to the vulnerable API in SAP SQL Anywhere.

The specific flaw exists within the handling of the REPLICATE function. If an application allows untrusted input to be used as the length of a REPLICATE function in a query, even if the input is correctly filtered against SQL injection, an attacker could take advantage of an arithmetic truncation error to overflow a heap buffer and execute arbitrary code in the context of the application.

Additional Details


SAP released Security Note 2057277 (http://scn.sap.com/docs/DOC-8218) to address this issue.


Disclosure Timeline

  • 2014-04-06 - Vulnerability reported to vendor
  • 2014-12-09 - Coordinated public release of advisory

Credit

John Leitch

Back to Advisories

Hero Background

Stand at the front line of proactive security

Trend ZDI connects the experts who discover, remediate, and defend.
Add your voice to the work that pushes attackers back.