Skip to content

Instantly share code, notes, and snippets.

CVE-2026-87902 — WordPress Path Traversal / RCE

Source: BleepingComputer — Hackers start exploiting critical WordPress flaw for code execution

Summary

CVE-2026-87902 is a critical (CVSS 9.2) unauthenticated path traversal flaw in WordPress core that is now being actively exploited for remote code execution (RCE).

  • Root cause: get_page_template() can be tricked into including an attacker-chosen local .php file outside the active theme directories (via path traversal in the pagename query var).
  • RCE conditions:
@mchow01
mchow01 / cyber_security_skills_shortage.md
Last active February 27, 2026 18:19
How long we have been playing this "cyber security skills shortage" game for?
#!/usr/bin/perl
### FooVirus.pl
### Author: Avi kak (kak@purdue.edu)
### Date: April 19, 2006
print "\nHELLO FROM FooVirus\n\n";
print "This is a demonstration of how easy it is to write\n";
print "a self-replicating program. This virus will infect\n";
@mchow01
mchow01 / alarm.py
Last active February 5, 2026 22:18
A working Scapy program that sniffs traffic on a live work or from a PCAP file. Goal is to expand this to identify basic vulnerabilities (e.g., credentials sent in plaintext)
#!/usr/bin/python3
from scapy.all import *
import argparse
def packetcallback(packet):
try:
# The following is an example of Scapy detecting HTTP traffic
# Please remove this case in your actual lab implementation so it doesn't pollute the alerts
if packet[TCP].dport == 80:
@mchow01
mchow01 / pwcount.py
Last active March 3, 2021 04:35
A tally program for password cracking competition
import glob, os
passwords =[]
results = {}
student_totals = {}
password_totals = {}
for filename in os.listdir("."):
if filename.endswith(".html"):
results[filename] = {}