Moderators-HTB [Discussion]
by - Thursday, January 1, 1970 at 12:00 AM
(August 7, 2022, 01:12 AM)fironeDerbert Wrote:
(August 7, 2022, 12:49 AM)vexxxi Wrote:
(August 7, 2022, 12:24 AM)fironeDerbert Wrote:
(August 7, 2022, 12:20 AM)vexxxi Wrote: any hint for how to bypass pdf filter ? won't let me upload even normal pdf :s


You have to set the name like something.pdf.php and keep the pdf first line and last line format


just tried that and wasn't able to get it to go through just always says only pdfs allowed
it should be getting uploaded to /logs/uploads/ right ?


Try to upload a regular pdf and see how the filter works, and yes the file will be uploaded in /logs/uploads


even for regular pdfs it still gives me only pdf files allowed message, ive tried 3 different ones for regular upload including one of the ones from the logs/hash/logs.pdf
Reply
How is everyone bypassing disable_functions? Literally all the good stuff is disabled and I've tried some known bypasses and none work.
Reply
(August 7, 2022, 01:24 AM)bigdare Wrote: How is everyone bypassing disable_functions? Literally all the good stuff is disabled and I've tried some known bypasses and none work.


https://github.com/epinna/weevely3
Reply
(August 7, 2022, 01:21 AM)vexxxi Wrote:
(August 7, 2022, 01:12 AM)fironeDerbert Wrote:
(August 7, 2022, 12:49 AM)vexxxi Wrote:
(August 7, 2022, 12:24 AM)fironeDerbert Wrote:
(August 7, 2022, 12:20 AM)vexxxi Wrote: any hint for how to bypass pdf filter ? won't let me upload even normal pdf :s


You have to set the name like something.pdf.php and keep the pdf first line and last line format


just tried that and wasn't able to get it to go through just always says only pdfs allowed
it should be getting uploaded to /logs/uploads/ right ?


Try to upload a regular pdf and see how the filter works, and yes the file will be uploaded in /logs/uploads


even for regular pdfs it still gives me only pdf files allowed message, ive tried 3 different ones for regular upload including one of the ones from the logs/hash/logs.pdf


upload a pdf you alredy found on server.
upload and with burp change content from PDF to you php reverse shell. 

after that access http://moderators.htb/logs/uploads/shell.pdf.php
Reply
found brandfolder plugin that is supposed to be vulnerable to LFI/RFI but doesn't seem to load. anyone got any further?
Reply
(August 6, 2022, 07:52 PM)loge23 Wrote: http://moderators.htb/logs/md5(report_no)/



Quick question on this after fuzzing the logs directory how did you get to the md5
Reply
(August 7, 2022, 08:04 AM)JINXX Wrote:
(August 6, 2022, 07:52 PM)loge23 Wrote: http://moderators.htb/logs/md5(report_no)/



Quick question on this after fuzzing the logs directory how did you get to the md5


You can use online tools: https://www.md5online.org/md5-encrypt.html
Reply
your are md5 the report log name?
Reply
(August 7, 2022, 01:31 AM)loge23 Wrote:
(August 7, 2022, 01:24 AM)bigdare Wrote: How is everyone bypassing disable_functions? Literally all the good stuff is disabled and I've tried some known bypasses and none work.


https://github.com/epinna/weevely3


Guys this is the best tip ever, focus on this. It does not matter if brandfolder plugin is disabled, it is a php file, and it is going to be executed as lexi.
Reply
(August 7, 2022, 08:04 AM)JINXX Wrote:
(August 6, 2022, 07:52 PM)loge23 Wrote: http://moderators.htb/logs/md5(report_no)/



Quick question on this after fuzzing the logs directory how did you get to the md5


Google
"e21cece511f43a5cb18d4932429915ed" md5
Reply


 Users viewing this thread: Moderators-HTB [Discussion]: No users currently viewing.