[UNIX] Asterisk CallerID CDR SQL Injection
From: SecuriTeam (support_at_securiteam.com)
Date: 09/16/03
- Previous message: SecuriTeam: "[NEWS] Predictability and Vulnerability in the Canadian Firearms Centre's On-Line Services Web Site"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 16 Sep 2003 15:37:08 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Asterisk CallerID CDR SQL Injection
------------------------------------------------------------------------
SUMMARY
<http://www.asterisk.org/> Asterisk is a complete PBX (Private Branch
eXchange) in software. It runs on Linux and provides all of the features
you would expect from a PBX and more. Asterisk does voice over IP with
three protocols (SIP, IAX v1 and v2, and H323), and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
Call Detail Records (CDRs) are generated by telephony systems in order to
perform a number of functions such as billing and rating. CDRs contain a
number of fields that identify useful information about the call including
source, destination, and other items such as CallerID. These can be
generated numerous times during the call to indicate the state of the call
as well.
@stake found an issue while conducting a source code review of the CDR
logging functionality. It is possible to perform SQL injection if an
attacker can supply a malformed CallerID string.
The interesting thing to note about this vulnerability is that is cannot
only be launched via VoIP protocols, but also through fixed-line
connections (i.e. POTS - Plain Old Telephone System).
DETAILS
@stake discovered that minimal input validation occurred between CDR
generation and the acceptance of this data as part of the SQL query.
SQL injection is covered in details in:
1) SQL Injection -
<http://www.spidynamics.com/papers/SQLInjectionWhitePaper.pdf>
http://www.spidynamics.com/papers/SQLInjectionWhitePaper.pdf
2) Advanced SQL Injection -
<http://www.ngssoftware.com/papers/advanced_sql_injection.pdf>
http://www.ngssoftware.com/papers/advanced_sql_injection.pdf
As a result, it is possible for a remote unauthenticated user to perform
arbitrary database operations.
Recommendation:
@stake notified the author of this particular code on the 17th of August.
The author developed and deployed a patch silently to the CVS on the 9th
of September.
@stake recommends that if you have not deployed a CVS version since the
9th of September 2003 to immediately do so.
ADDITIONAL INFORMATION
The original advisory can be downloaded from:
<http://www.atstake.com/research/advisories/2003/a091103-1.txt>
http://www.atstake.com/research/advisories/2003/a091103-1.txt.
The information has been provided by <mailto:advisories@atstake.com>
@stake Advisories.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[NEWS] Predictability and Vulnerability in the Canadian Firearms Centre's On-Line Services Web Site"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [NT] w3wp DoS
... The following security advisory is sent to the securiteam mailing list, and
can be found at the SecuriTeam web site: http://www.securiteam.com ... 1/12/2006 - Vendor requested
for additional info ... recv(conn_socket, szBuffer, 256, 0); ... (Securiteam) - [UNIX] Protector System Multiple Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Several classes of vulnerabilities
have been found in Protector. ... cross-site scripting and SQL injection attacks.
... (Securiteam) - [NEWS] RealNetworks Helix Server 9 Administration Server Buffer Overflow
... The following security advisory is sent to the securiteam mailing list, and
can be found at the SecuriTeam web site: http://www.securiteam.com ... Several of Real Networks
Helix Server products utilize a common ... (Securiteam) - [UNIX] PhotoPost PHP Pro Multiple Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... PhotoPost PHP Pro suffers
from multiple SQL injection, ... There are plenty of SQL injection vulnerabilities
in PhotoPost PHP Pro. ... (Securiteam) - [REVS] Advanced Topics on SQL Injection Protection
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... SQL injection is now one
of the most common attacks in the Internet. ... Static query statement - Development Phrase
... Some programmers may think escaping apostrophe with two apostrophes (and ...
(Securiteam)