CVE-2024-50498 is a security vulnerability found in the WP Query Console WordPress plugin.

Local IP: 172.25.200.200

Port: 9043

image.png

The Flag is in /flag/flag.txt

Want to run the challenge container locally?

docker run -d -p 9043:80 --restart always joshbeck2024/ctf-cve-2024-50498-wpquery-flag-red63

Vulnerability Summary: (We’ll look at the code in this lab as well.)

Detection:

Detection Option 1: (Super Lame)

http://IP_OF_TARGET/wp-json/wqc/v1/query

If a query error is returned, the target may be vulnerable.

Detection Option 2: Nuclei!