File tree Expand file tree Collapse file tree 3 files changed +14
-22
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -77,24 +77,17 @@ def initialize(info = {})
77
77
end
78
78
79
79
def check
80
- version = spip_version
80
+ rversion = spip_version
81
+ return Exploit ::CheckCode ::Unknown ( 'Unable to determine the version of SPIP' ) unless rversion
81
82
82
- print_status ( "SPIP Version detected: #{ version } " )
83
+ print_status ( "SPIP Version detected: #{ rversion } " )
83
84
84
- rversion = Rex ::Version . new ( version )
85
-
86
- if rversion >= Rex ::Version . new ( '2.0.0' )
87
- if rversion < Rex ::Version . new ( '2.0.21' )
88
- return Exploit ::CheckCode ::Appears
89
- end
90
- elsif rversion >= Rex ::Version . new ( '2.1.0' )
91
- if rversion < Rex ::Version . new ( '2.1.16' )
92
- return Exploit ::CheckCode ::Appears
93
- end
94
- elsif rversion >= Rex ::Version . new ( '3.0.0' )
95
- if rversion < Rex ::Version . new ( '3.0.3' )
96
- return Exploit ::CheckCode ::Appears
97
- end
85
+ if rversion . between? ( Rex ::Version . new ( '2.0.0' ) , Rex ::Version . new ( '2.0.20' ) )
86
+ return Exploit ::CheckCode ::Appears
87
+ elsif rversion . between? ( Rex ::Version . new ( '2.1.0' ) , Rex ::Version . new ( '2.1.15' ) )
88
+ return Exploit ::CheckCode ::Appears
89
+ elsif rversion . between? ( Rex ::Version . new ( '3.0.0' ) , Rex ::Version . new ( '3.0.2' ) )
90
+ return Exploit ::CheckCode ::Appears
98
91
end
99
92
100
93
return Exploit ::CheckCode ::Safe
Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ def check
76
76
return Exploit ::CheckCode ::Unknown ( 'Unable to determine the version of SPIP' ) unless rversion
77
77
78
78
print_status ( "SPIP Version detected: #{ rversion } " )
79
- if Rex ::Version . new ( rversion ) > Rex ::Version . new ( '4.2.12' )
79
+
80
+ if rversion > Rex ::Version . new ( '4.2.12' )
80
81
return CheckCode ::Safe ( "The detected SPIP version (#{ rversion } ) is not vulnerable." )
81
82
end
82
83
Original file line number Diff line number Diff line change @@ -80,13 +80,11 @@ def check
80
80
81
81
print_status ( "SPIP Version detected: #{ rversion } " )
82
82
83
- if rversion . between? ( Rex ::Version . new ( '4. 2.0' ) , Rex ::Version . new ( '4.2.1 ' ) )
83
+ if rversion . between? ( Rex ::Version . new ( '2.0.0 ' ) , Rex ::Version . new ( '2.0.20 ' ) )
84
84
return Exploit ::CheckCode ::Appears
85
- elsif rversion . between? ( Rex ::Version . new ( '4 .1.0' ) , Rex ::Version . new ( '4 .1.18 ' ) )
85
+ elsif rversion . between? ( Rex ::Version . new ( '2 .1.0' ) , Rex ::Version . new ( '2 .1.15 ' ) )
86
86
return Exploit ::CheckCode ::Appears
87
- elsif rversion . between? ( Rex ::Version . new ( '4.0.0' ) , Rex ::Version . new ( '4.0.10' ) )
88
- return Exploit ::CheckCode ::Appears
89
- elsif rversion . between? ( Rex ::Version . new ( '3.2.0' ) , Rex ::Version . new ( '3.2.18' ) )
87
+ elsif rversion . between? ( Rex ::Version . new ( '3.0.0' ) , Rex ::Version . new ( '3.0.2' ) )
90
88
return Exploit ::CheckCode ::Appears
91
89
end
92
90
You can’t perform that action at this time.
0 commit comments