J-Security Center

Title: Adaptive Server Anywhere Multiple Remote Buffer Overrun Vulnerabilities

Severity: HIGH

Description:

Adaptive Server Anywhere is a relational database the backend of SQL Anywhere Studio 8. It is a transaction-based SQL database.

It has been discovered that Adaptive Server Anywhere is prone to multiple remote buffer overrun vulnerabilities. The problem occurs due to insufficient bounds checking in a wide variety of procedures, stored procedures, and statements detailed below.

Affected CREATE statements: DATABASE, COMPRESSED DATABASE, EXPANDED DATABASE, ENCRYPTED FILE, DECRYPT FILE, DBSPACE, and WRITE FILE

Affected ALTER statements: DATABASE and WRITEFILE

Affected BACKUP statements: DATABASE DIRECTORY and DATABASE TO

Miscellaneous statements: INSTALL JAVA, DROP DATABSE, and RESTORE DATABASE

Each of the above statements is by default given the 'DBA' permissions, possibly them inaccessible to some attackers.

The START DATABSE statement is also prone to a buffer overrun, however this statement is accessible by all users on personal databases, and 'DBA' only on network databases.

The following is a list of affected stored procedures and procedures with 'DBA' permissions: XP_STARTSMTP, XP_SENDMAIL, and SA_EXEC_SCRIPT

Finally, below is a list of affected stored procedures and procedures with 'NONE' permissions: SP_REMOTE_COLUMNS, SP_REMOTE_EXPORTED_KEYS, SP_REMOTE_IMPORTED_KEYS, SP_REMOTE_PRIMARY_KEYS, SP_REMOTE_TABLES, and SA_FORWARD_TO

As a result of these buffer overrun vulnerabilities, a malicious remote user could access the database, possibly requiring 'DBA' access permissions, and supply excessive, but specially formatted data to affected statement or procedure. This could ultimately allow for the execution of arbitrary code within the context of the user whom invoked the database.

Affected Products:

  • Sybase Adaptive Server Anywhere 9.0.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.