what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

crafty-sql.txt

crafty-sql.txt
Posted Aug 26, 2008
Authored by James Bercegay | Site gulftech.org

Crafty Syntax Live Help versions 2.14.6 and below suffer from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 64d8d5a4d5584020885aa211271e020ff1a652044d38061ffb50dddcd2edf986

crafty-sql.txt

Change Mirror Download
##########################################################
# GulfTech Security Research August 25, 2008
##########################################################
# Vendor : Eric Gerdes
# URL : http://www.craftysyntax.com
# Version : Crafty Syntax Live Help <= 2.14.6
# Risk : SQL Injection
##########################################################


Description:
Crafty Syntax Live Help is a full featured, open source, online
support system written in php that allows the visitors of a
website to interact in real time with the site owners. There is
a couple of high risk SQL Injections in Crafty Syntax Live Help
that allows for an attacker to read arbitrary database contents
such as user credentials, or administrator credentials. An updated
version of Crafty Syntax Live Help is now available and users
should upgrade as soon as possible.



SQL Injection:
There is a high risk SQL Injection issue within Crafty Syntax Live
Help that allows for an attacker to read arbitrary database contents
such as user credentials, or administrator credentials. The vulnerable
bit of code in question can be seen below.

if(empty($UNTRUSTED['department'])){ $department=0; } else {
$department=$UNTRUSTED['department']; }

// Get department information. First found if no specific department
assigned
$qQry = "SELECT
recno,messageemail,colorscheme,leavetxt,creditline,onlineimage,leaveamessage,offlineimage,speaklanguage
FROM livehelp_departments "
. (($department==0)? 'LIMIT 1': "WHERE recno=$department");

The above code can be found in is_xmlhttp.php, but an almost identical
issue can be found within the file is_flush.php also. This SQL Injection
issue is present regardless of magic quotes settings, and can be triggered
using a url like the one shown below.

/is_xmlhttp.php?scriptname=1&department=-99%20UNION%20SELECT%201,2,concat
(username,char(58),password),4,5,6,7,8,9%20FROM%20livehelp_users/*

Since Crafty Syntax Live Help seems to store passwords in plain text by
default, it is a trivial task for an attacker to gain administrative
access to the installation after exploiting this issue.



Solution:
An updated version of Crafty Syntax Live Help has been released and
can be found at the location below.

http://security.craftysyntax.com/updates/?v=2.14.6


Credits:
James Bercegay of the GulfTech Security Research Team



Related Info:
The original advisory can be found at the following location
http://www.gulftech.org/?node=research&article_id=00127-08252008
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close