# Directory Traversal in mojoPortal v2.7 (CVE-2022-40123)

**Vulnerability Type:** Directory Traversal

**Vendor of Product:** mojoPortal

**Discoverer:** Dat Hoang and Duy Anh of VietSunshine Cyber Security Services

**Affected version:** mojoPortal - 2.7

**Attack Type:** Remote

**Description:** mojoPortal v2.7 was discovered to contain a path traversal vulnerability via the "f" parameter at /DesignTools/CssEditor.aspx. This vulnerability allows authenticated attackers to read arbitrary files in the system.

**Impact:** read arbitrary files in system

**PoC**

**Example of Vulnerable URL:** /DesignTools/CssEditor.aspx?s=framework\&f=../../../../../web.config

<figure><img src="/files/KcQQc9sz8zYalIyakuQ8" 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://weed-1.gitbook.io/cve/mojoportal/directory-traversal-in-mojoportal-v2.7-cve-2022-40123.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.
