diff --git a/modules/exploits/unix/webapp/joomla_tinybrowser.rb b/modules/exploits/unix/webapp/joomla_tinybrowser.rb index b13ac4e622..9bf69e28ae 100644 --- a/modules/exploits/unix/webapp/joomla_tinybrowser.rb +++ b/modules/exploits/unix/webapp/joomla_tinybrowser.rb @@ -91,7 +91,7 @@ class Metasploit3 < Msf::Exploit::Remote directory = '/images/stories/' uri_base = '' uri_base << datastore['URI'] - uri_base << '/' if uri[-1,1] != '/' + uri_base << '/' if uri_base[-1,1] != '/' uri_base << 'plugins/editors/tinymce/jscripts/tiny_mce/plugins/tinybrowser' # Get obfuscation code (needed to upload files)