Skip to content

Sudo-WP/sudowp-hooks-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SudoWP Hooks Visualizer

Contributors: SudoWP, WP Republic
Original Authors: Stuart O'Brien, cxThemes
Tags: hooks, actions, filters, developer-tool, debug, security-fork, cve-2024-6297
Requires at least: 5.8
Tested up to: 6.7
Stable tag: 1.3.2
License: GPLv2 or later

Security Notice (CVE-2024-6297)

This is a security-hardened fork of the abandoned "Simply Show Hooks" plugin. The original plugin was compromised in a supply chain attack (CVE-2024-6297) and permanently closed by WordPress.

This SudoWP edition is:

  1. Clean: Guaranteed free from the CVE-2024-6297 backdoor.
  2. Patched: Fixes legacy Cross-Site Scripting (XSS) vulnerabilities found in the visualization output.
  3. CSRF Protected: All state changes are protected with WordPress nonces.
  4. OWASP Compliant: Follows OWASP Top 10 security best practices.

For detailed security information, see SECURITY.md.


Description

SudoWP Hooks Visualizer is a developer tool that helps you see where all the action and filter hooks are firing on any WordPress page. It is a secure, modernized version of the classic "Simply Show Hooks".

Key Features:

  • Visual Hook Map: Displays hooks directly on the page where they trigger.
  • Deep Inspection: See attached functions, their priority, and accepted arguments.
  • Security Hardened: Input validation prevents XSS vectors found in legacy debugging tools.
  • One-Click Toggle: Enable or disable globally via the Admin Bar.

Installation

  1. Download the plugin zip file (or clone this repo).
  2. Important: Deactivate and delete the original "Simply Show Hooks" plugin if installed.
  3. Upload the sudowp-hooks-visualizer folder to your /wp-content/plugins/ directory.
  4. Activate the plugin through the 'Plugins' menu in WordPress.
  5. Look for the "SudoWP Hooks" menu in your Admin Bar.

Frequently Asked Questions

Why did you fork this? The original tool was incredibly useful but abandoned and later compromised. We rely on it for debugging, so we patched it to ensure it remains safe and compatible with newer PHP versions.

Is it safe to keep active? While we have hardened the security, this is primarily a debugging tool. We recommend activating it only when you are actively developing or troubleshooting a site, and keeping it inactive otherwise.

Changelog

Version 1.3.2 (February 2026)

  • Security Fix: Added CSRF protection with WordPress nonces for all state changes.
  • Security Fix: Enhanced authorization checks - all rendering methods now verify manage_options capability.
  • Security Fix: Improved input validation with strict type checking for hook names and arguments.
  • Security Fix: Added X-Content-Type-Options security header to prevent MIME type sniffing.
  • Security Fix: Fixed COOKIE_DOMAIN handling to support environments where it's undefined.
  • Security Enhancement: Improved direct file access prevention.
  • Documentation: Added comprehensive SECURITY.md following OWASP framework.

Version 1.3.0 (SudoWP Edition)

  • Security Fix: Guaranteed clean from CVE-2024-6297 (Supply Chain Attack).
  • Security Fix: Implemented strict sanitization for all user inputs ($_GET, $_COOKIE) to prevent XSS.
  • Security Fix: Hardened cookie setting with secure flags.
  • Maintenance: Refactored codebase to use SudoWP_ namespace and prevent conflicts.
  • Rebrand: Forked as SudoWP Hooks Visualizer.

Maintained by the SudoWP Security Project.

About

A security-hardened fork of "Simply Show Hooks". Replaces the compromised original (CVE-2024-6297) and patches unlisted Cross-Site Scripting (XSS) vulnerabilities.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors