Skyfall - HTB
by paven - Saturday February 3, 2024 at 02:10 PM
#11
i think You can recognize port on localhost via fetch endpoint (5005) but no idea so far what to do next
Reply
#12
there's aws

``` S3 operation failed; code: NoSuchKey, message: The specified key does not exist., resource: /guest//etc/passwd, request_id: 17B075BBE1C0F812, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: etc/passwd ```

when accessing http://demo.skyfall.htb/download_file?fi...etc/passwd
Reply
#13
(Feb 03, 2024, 08:52 PM)camiyi3472 Wrote:
(Feb 03, 2024, 08:46 PM)U2t5d2lu Wrote: i think You can recognize port on localhost via fetch endpoint (5005) but no idea so far what to do next

Nice finding, but i logs me out, do you get any specific response?
i think it might a blind SSRF

just 502 bad gateway and service is restarting
Reply
#14
(Feb 03, 2024, 08:56 PM)hackwell Wrote: there's aws

``` S3 operation failed; code: NoSuchKey, message: The specified key does not exist., resource: /guest//etc/passwd, request_id: 17B075BBE1C0F812, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: etc/passwd ```

when accessing http://demo.skyfall.htb/download_file?fi...etc/passwd

should be minio to be specific, am thinking enum buckets with the ssrf maybe not sure
Reply
#15
(Feb 03, 2024, 08:56 PM)hackwell Wrote: there's aws

``` S3 operation failed; code: NoSuchKey, message: The specified key does not exist., resource: /guest//etc/passwd, request_id: 17B075BBE1C0F812, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: etc/passwd ```

when accessing http://demo.skyfall.htb/download_file?fi...etc/passwd

I actually think its minio , it just has a S3 interface.
Reply
#16
mmm... skyfall ? cloud ?
Reply
#17
no its james bond skyfall, vue to a kill https://portswigger.net/daily-swig/vue-t...s-revealed
Reply
#18
S3 operation failed; code: NoSuchKey, message: Object does not exist, resource: /guest/test.txt, request_id: 17B077A43BE44FF4, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: test.txt

This implies AWS and S3 enum, I guess
Reply
#19
(Feb 03, 2024, 09:30 PM)chillywilly Wrote: no its james bond skyfall, vue to a kill https://portswigger.net/daily-swig/vue-t...s-revealed

But vue isnt used anywhere on the server afaik
Reply
#20
filename=yyy returns error:

S3 operation failed; code: NoSuchKey, message: The specified key does not exist., resource: /guest/yyy, request_id: 17B0790FC421D09E, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: yyy

filename=../xxx/yyy returns error:

S3 operation failed; code: SignatureDoesNotMatch, message: The request signature we calculated does not match the signature you provided. Check your key and signing method., resource: /xxx/yyy, request_id: 17B079010DB96CC8, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: xxx, object_name: yyy

So we are traversing buckets with the ../ but strangely

filename=../guest/Welcome.pdf (or any file we uploaded) also returns an error:

S3 operation failed; code: SignatureDoesNotMatch, message: The request signature we calculated does not match the signature you provided. Check your key and signing method., resource: /guest/Welcome.pdf, request_id: 17B07923A86DCA80, host_id: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, bucket_name: guest, object_name: Welcome.pdf
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] CPTS 12 FLAGS pulsebreaker 68 1,916 4 hours ago
Last Post: VictorPipeau
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 601 91,514 4 hours ago
Last Post: VictorPipeau
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 371 92,790 5 hours ago
Last Post: phannguyenbaouy1
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,604 9 hours ago
Last Post: popoler
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,246 Yesterday, 02:10 PM
Last Post: kkkato

Forum Jump:


 Users browsing this forum: 1 Guest(s)