Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.47 KB

setup_procedure.md

File metadata and controls

66 lines (47 loc) · 1.47 KB

Steps to Set Up the Docker Environment

1. Create a Verification Directory

mkdir wordpress-cve-2025-9519
cd wordpress-cve-2025-9519

2. Start the Docker Environment

Start Docker Desktop and run the command.

docker-compose up -d --build

3. Initial WordPress Setup

Access http://localhost:8080 in your browser and complete the WordPress installation:

  • Site Title: David Private Academy (Arbitrary)

  • Username: admin (or any)

  • Password: JGTpMWZk9%gqUgmRnE (Strong password)

  • Email Address: admin@example.com (Arbitrary)

  • Go to "Users" -> "Add New"

  • Username: Mike

  • Email: mike@example.com

  • Password: test123

  • Role: Editor

4. Activate Plugin

Log into WordPress Admin Console via web browser and activate the necessary plugin.

  • Likes and Dislikes Plugin
  • EasyTimer Plugin
  • User Role Plugin

5. Add appropriate permissions to Editor

In the User Role Editor page, check "manage_options" in the "Core-General" tab. This gives editors to use shortcode function.

5. Dump the settings into sql file

$dbContainerId = docker-compose ps -q db
docker cp "${dbContainerId}:/tmp/dump.sql" ./init.sql
# stop the docker container
docker-compose down
# Rename the sql file
mv init_tmp.sql init.sql

6. Just to make sure, clean up docker volumes

docker-compose down -v

7. Re-start the environment

docker-compose up -d --build