Monitored - HTB
by paven - Saturday January 13, 2024 at 12:13 PM
#21
I tried this with no luck.. what is your endpoint ?


(01-13-2024, 09:25 PM)DataNinja Wrote: PING WORKS!
[Image: yeCEPsM.png]

ok got the ping also working with service icmp so we are allowed to use some cmd.cgi

curl snippet
--data-binary $'nagFormId=a30151f1&cmd_typ=3&cmd_mod=2&host=10.10.x.x&service=icmp&persistent=on&com_data=test&btnSubmit=Commit' \
$'https://nagios.monitored.htb/nagios/cgi-bin/cmd.cgi'
Reply
#22
Nagios core is running on https://nagios.monitored.htb/nagios/
And I'm able to log in with svc:XjH7VCehowpR1xZB but can't find anything useful
Reply
#23
(01-13-2024, 09:32 PM)RebeLHeX Wrote: I tried this with no luck.. what is your endpoint ?


(01-13-2024, 09:25 PM)DataNinja Wrote: PING WORKS!
[Image: yeCEPsM.png]

ok got the ping also working with service icmp so we are allowed to use some cmd.cgi

curl snippet
--data-binary $'nagFormId=a30151f1&cmd_typ=3&cmd_mod=2&host=10.10.x.x&service=icmp&persistent=on&com_data=test&btnSubmit=Commit' \
    $'https://nagios.monitored.htb/nagios/cgi-bin/cmd.cgi'

But how are you supposed to upload cmd.cgi to the server?
Reply
#24
Trying to get son useful in CGIs but nothing

GET /nagios/cgi-bin/cmd.cgi?cmd_typ=22&host=localhost&service=SSH HTTP/1.1

POST /nagios/cgi-bin/cmd.cgi HTTP/1.1
...

nagFormId=a9e827f8&cmd_typ=22&cmd_mod=2&host=localhost&service=SSH&btnSubmit=Commit
Reply
#25
you all got into https://nagios.monitored.htb/nagiosxi/login.php with svc:XjH7VCehowpR1xZB  ????

I get The specified user account has been disabled or does not exist.
Reply
#26
(01-13-2024, 11:28 PM)zeroedbykrycek Wrote: you all got into https://nagios.monitored.htb/nagiosxi/login.php with svc:XjH7VCehowpR1xZB  ????

I get The specified user account has been disabled or does not exist.

not  https://nagios.monitored.htb/nagiosxi/login.php try https://nagios.monitored.htb/nagios/
Reply
#27
Try to find SQLi in
POST /nagiosxi/admin/banner_message-ajaxhelper.php HTTP/1.1
Host: nagios.monitored.htb
...
action=acknowledge_banner_message&id=3

No much success (maybe a rabbit hole)
Reply
#28
(01-14-2024, 12:26 AM)ElBakhaw Wrote: i'll share full writeup 100% free tomorrow, i have rooted Smile

any hint on what to look into after getting the nagios panel using svc creds? Smile
Reply
#29
(01-14-2024, 12:33 AM)zeroedbykrycek Wrote: any hint on what to look into after getting the nagios panel using svc creds? Smile
Try finding an sql injection vulnerability and dumb those tables Big Grin
Reply
#30
(01-14-2024, 12:56 AM)peRd1 Wrote:
(01-14-2024, 12:33 AM)zeroedbykrycek Wrote: any hint on what to look into after getting the nagios panel using svc creds? Smile
Try finding an sql injection vulnerability and dumb those tables Big Grin

But where should we find the SQLi, in the Nagios XI login?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,239 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,759 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,046 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,264 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,536 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 3 Guest(s)