You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnCheckCode::Safe("The detected SPIP version (#{rversion}) is not vulnerable.")
102
101
end
103
102
103
+
print_good("SPIP version #{rversion} is vulnerable.")
104
104
plugin_version=spip_plugin_version('bigup')
105
+
print_status("Bigup plugin version detected: #{plugin_version}")
105
106
106
107
unlessplugin_version
107
108
print_warning('Could not determine the version of the bigup plugin.')
108
109
returnCheckCode::Appears("The detected SPIP version (#{rversion}) is vulnerable.")
109
110
end
110
111
111
-
returnCheckCode::Appears("Both the detected SPIP version (#{rversion}) and bigup version (#{plugin_version}) are vulnerable.")ifplugin_version < Rex::Version.new('3.1.6')
112
+
ifplugin_version < Rex::Version.new('3.2.12')
113
+
returnCheckCode::Appears("Both the detected SPIP version (#{rversion}) and bigup version (#{plugin_version}) are vulnerable.")
114
+
end
112
115
113
-
CheckCode::Safe("The detected SPIP version (#{rversion}) is not vulnerable.")
116
+
CheckCode::Appears("The detected SPIP version (#{rversion}) is vulnerable.")
114
117
end
115
118
116
119
# This function tests several pages to find a form with a valid CSRF token and its corresponding action.
@@ -142,55 +145,55 @@ def get_form_data
142
145
143
146
nil
144
147
end
145
-
end
146
148
147
-
# This function generates PHP code to execute a given payload on the target.
148
-
# We use Rex::RandomIdentifier::Generator to create a random variable name to avoid conflicts.
149
-
# The payload is encoded in base64 to prevent issues with special characters.
150
-
# The generated PHP code includes the necessary preamble and system block to execute the payload.
151
-
# This approach allows us to test multiple functions and not limit ourselves to potentially dangerous functions like 'system' which might be disabled.
0 commit comments