Skip to content

Commit 9c3bd12

Browse files
committed
If I can't write, I want to know.
It's possible that the upload directory doesn't allow write, the module should be aware of that. Other reasons may be possible.
1 parent 19d8687 commit 9c3bd12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/exploits/unix/webapp/havalite_upload_exec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def upload(base)
107107
fail_with(Exploit::Failure::Unknown, "#{peer} - Request timed out while uploading")
108108
elsif res.code.to_i == 404
109109
fail_with(Exploit::Failure::NotFound, "#{peer} - No upload.php found")
110+
elsif res.body =~ /"error"\:"abort"/
111+
fail_with(Exploit::Failure::Unknown, "#{peer} - Unable to write #{fname}")
110112
end
111113

112114
return fname

0 commit comments

Comments
 (0)