Inviato: Sab 15 Apr, 2006 10:40 am Oggetto: [advisory] Sql injection critica in phpNuke 7.5-7.8
This particular advisory will address critical sql injection case in "Search" module.
Versions 7.5 - 7.8 are affected, older versions contain different code implementation
and are not affected by bug. Newest version 7.9 is not vulnerable too.
As we can see, "addslashes()" is used against "$query" variable, so sql injection is not
possible. Now let's peek at the same code fragment in newer phpnuke version, in this
specific case - 7.5 :
----------------[ from source code ]------------------
Well, i really don't know, what was thinking the person, who changed this little code
snippet. But the truth is, that very big hole to phpnuke installation is opened and it exists
in versions 7.5, 7.6, 7.7 and 7.8
So - is this exploitable? Yes, if we have mysql version 4.x with UNION support, if we can avoid
potential anti-sql-injection filters/traps/ids/ips and if sql table name prefix is not changed.
Example proof of concept exploit? Here it is:
[------ real life exploit ------]
p0hh0nsee%') UNION ALL SELECT 1,2,aid,pwd,5,6,7,8,9,10 FROM nuke_authors/*
[----- /real life exploit ------]
For exploiting just enter this string to search field in "search.html" page:
Devi essere loggato per vedere questo link Registrati o fai il Login
and if it works, you will see usernames and password hashes of ALL admins
Devi essere loggato per vedere questo link Registrati o fai il Login
See ya s00n and have a nice day
How to fix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Download 7.9 version. Or patch manually that flawed codeline.
Non puoi inserire nuovi Topic in questo forum Non puoi rispondere ai Topic in questo forum Non puoi modificare i tuoi messaggi in questo forum Non puoi cancellare i tuoi messaggi in questo forum Non puoi votare nei sondaggi in questo forum Non puoi allegare file in questo forum Puoi scaricare file da questo forum
[Mappa del Sito - Note legali - Donazioni] Tutti i commenti e i post sul forum sono di proprietą degli utenti che li inseriscono, ed essi se ne assumono la completa responsabilitą.