Exploit database

GH-afc785c327c2e0fa31c097968280cdbc

bohemian-miser/cve-2025-65018_exploit_challenge

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-65018

2 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files11

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

build.sh

Suggested starting fileShell · 625 bytes
#!/bin/bash
set -e

# 1. Setup libpng source (if not already done/patched)
# We assume libpng-src is present.

echo "[*] Patching libpng..."
python3 patch_libpng.py

echo "[*] Configuring libpng..."
cd libpng-src
# Configure
if [ ! -f Makefile ]; then
    ./configure CFLAGS="-g -O0 -fno-stack-protector" --disable-shared --with-binconfigs=no
fi

# Build libpng
echo "[*] Building libpng..."
make -j$(nproc)

# Copy artifacts to challenge root
cp .libs/libpng16.a ../libpng16.a
cp png.h pngconf.h pnglibconf.h ..

cd ..

# 2. Build Victim
echo "[*] Building victim..."
make clean
make

echo "[*] Build complete! Run ./victim"