exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

osTicket131.txt

osTicket131.txt
Posted Jul 1, 2005
Authored by Foster, edisan | Site ghc.ru

osTicket versions 1.3.1beta and below suffer from SQL injection and file inclusion flaws.

tags | advisory, sql injection, file inclusion
SHA-256 | 062203da452a48183dabb5fa5083266edff71537df530e644965fbe3d188be59

osTicket131.txt

Change Mirror Download
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ ~ RST / GHC -> OSTICKET <- ADVISORY
~ ~ Product: osTicket
~ ~ Version: <= 1.3.1 beta
~ ~ URL: http://www.osticket.com
~ ~ Risk: medium
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Product Description]
"osTicket is a widely-used open source support ticket system. Plain and simple it is a lightweight feature packed support ticket tool written mainly using PHP
scripting language."

[Summary]
Insufficient filtration of user input data can lead to SQL injection vulnerability and arbitrary file including.

[Details]

-----------[SQL injection]----------
Vulnerable script: class.ticket.php
Vulnerable code:
--[code]--
function CloseTicket($ticket) {
mysql_query("UPDATE tickets SET status = 'closed' WHERE ID=$ticket"); // - SQL injection
}
-[skip]-
function ReopenTicket($ticket) {
mysql_query("UPDATE tickets SET status='open' WHERE ID=$ticket"); // - SQL injection
}
-[skip]-
function PostMessage($ticket, $message, $headers='', $notify=true) {
global $config;
$headers = $config[save_headers] ? $headers: "";
$gmtime = (time() - date("Z")) + 3600;

ReopenTicket($ticket);
mysql_query("INSERT INTO ticket_messages (ticket, message, headers, timestamp)
VALUES($ticket, '" . addslashes(striptags($message)) . // - SQL injection
"', '" . addslashes($headers) . "', FROM_UNIXTIME('$gmtime') + 0)");

if ($config[alert_new]) {
email_alert($ticket, mysql_insert_id());
}

$t = mysql_fetch_array(mysql_query
("SELECT email, cat FROM tickets WHERE ID=$ticket")); // - SQL injection
--[/code]--

It is possible to inject arbitrary SQL code through POST query.
An attacker can use one-char bruteforce technique to get some sensitive information from database.


----------[Arbitrary file including (local)]----------
$inc variable is not defined in files vew.php and open.php in some cases.
If "Register Globals" is "on", an attacker can define this variable to invoke
arbitrary local file inclusion.

Vulnerable code:
--[code]--
include(INCLUDE_DIR."/$inc.php");
--[/code]--

POC:
http://vulnsite/osticket/view.php?inc=x

Server answer:
[23-Jun-2005 00:57:40] PHP Warning: main():
Failed opening '/home/vulnsite/public_html/_osticket/include/x.php'
for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/vulnsite/public_html/_osticket/view.php on line 98


+---------------------------------------------+
| Discovered by edisan & foster |
| http://www.ghc.ru http://rst.void.ru |
+---------------------------------------------+
Login or Register to add favorites

File Archive:

August 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close