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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-8625 PoC — Copypress Rest API 1.1 - 1.2 - Missing Configurable JWT Secret and File-Type Validation to Unauthenticated Remote Code E

Source
Associated Vulnerability
Title: Copypress Rest API 1.1 - 1.2 - Missing Configurable JWT Secret and File-Type Validation to Unauthenticated Remote Code Execution (CVE-2025-8625)
Description:The Copypress Rest API plugin for WordPress is vulnerable to Remote Code Execution via copyreap_handle_image() Function in versions 1.1 to 1.2. The plugin falls back to a hard-coded JWT signing key when no secret is defined and does not restrict which file types can be fetched and saved as attachments. As a result, unauthenticated attackers can forge a valid token to gain elevated privileges and upload an arbitrary file (e.g. a PHP script) through the image handler, leading to remote code execution.
Readme
# CVE-2025-8625 — PoC

## Обзор
В репозитории храняться исходные файлы для статьи в [Xakep.ru](Xakep.ru)
В репозитории содержатся демонстрационные материалы, предназначенные исключительно для исследований в области безопасности, обучения и тестирования **в изолированных лабораторных средах**. Репозиторий **не** предназначен для использования против чужих систем.

---

## Содержимое репозитория
- `docker-compose.yml` — конфигурация для поднятия локальной, **изолированной** инстанции WordPress для анализа и тестирования.
- `exploit/CVE-2025-8625.py` — пример кода эксплоита, используемый в статье для демонстрации концепций. **Не применять против систем, которыми вы не владеете и для которых у вас нет явного разрешения.**
- `exploit/shell.php` — пример веб-шела, включённый только для демонстрации поведения в контролируемой лабораторной среде.

---

## Важное — безопасность и этика
- В репозитории **могут присутствовать** материалы, демонстрирующие концепции эксплуатации. Они предоставляются **только** в образовательных и защитных целях.
- **НЕЛЬЗЯ** применять материалы из этого репозитория против систем, которыми вы не владеете, или без письменного разрешения владельца. Несанкционированный доступ — уголовно и/или административно наказуем.
- Тестирование выполняйте только в изолированной лаборатории (host-only / NAT / air-gapped), на тестовых виртуальных машинах или контейнерах с возможностью отката (snapshots). Не проводите эксплуатацию в продуктивных окружениях.
- Автор и редакция журнала **не несут ответственности** за неправомерное использование материалов. Вся ответственность лежит на скачавшем/исполнителе.
- Если вы обнаружили уязвимость в реальной системе, следуйте практикам ответственного раскрытия: ограничьте сбор доказательств до необходимого минимума, не выполняйте эксплуатацию в продуктиве, и свяжитесь с вендором или соответствующим CERT/CSIRT.

---

## Лицензия и юридические замечания
Репозиторий предоставлен "как есть" без каких-либо гарантий. Используя материалы, вы соглашаетесь, что несёте ответственность за соблюдение применимого законодательства. При сомнениях — получите юридическую консультацию.  

---

# CVE-2025-8625 — PoC

## Overview
This repository contains the source files for an article published on [Xakep.ru](https://xakep.ru).  
The repository holds demonstration materials intended **only** for security research, education, and testing **in isolated laboratory environments**. This repository is **not** intended for use against third-party systems.

---

## Repository contents
- `docker-compose.yml` — configuration to spin up a local, **isolated** WordPress instance for analysis and testing.  
- `exploit/CVE-2025-8625.py` — example exploit script used in the article to demonstrate concepts. **Do not use against systems you do not own or do not have explicit authorization to test.**
- `exploit/shell.php` — example web shell included solely to demonstrate post-compromise behavior in a controlled lab environment.

---

## Important — safety & ethics
- The repository **may contain** materials that demonstrate exploitation concepts. They are provided **only** for educational and defensive purposes.
- **DO NOT** use materials from this repository against systems you do not own or without the owner’s written permission. Unauthorized access may constitute a criminal or administrative offense in some jurisdictions.
- Perform testing only in isolated lab environments (host-only / NAT / air-gapped), on disposable virtual machines or containers with snapshots so you can revert state. Do not run exploitation against production environments.
- The author and the magazine’s editorial staff **accept no responsibility** for improper or malicious use of these materials. All responsibility lies with the downloader/operator.
- If you discover this vulnerability in a real system, follow responsible disclosure practices: collect only minimal, non-sensitive evidence, avoid exploitation on production systems, and contact the vendor or the relevant CERT/CSIRT.

---

## License & legal notice
This repository is provided “as is” without any warranties. By using these materials you accept responsibility for complying with applicable law. If in doubt, seek legal advice.

---

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 →