mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
Update wordpress.md
This commit is contained in:
parent
b97cee4395
commit
7638765b53
@ -913,18 +913,6 @@ Hardening
|
||||
- Enforce allowlisted templates; resolve with realpath() and require str_starts_with(realpath(file), realpath(allowed_base))
|
||||
- Normalize input; reject traversal sequences and absolute paths; use sanitize_file_name() only for filenames (not full paths)
|
||||
|
||||
---
|
||||
|
||||
### Operational detection and virtual patching tips (application layer)
|
||||
|
||||
Until vendors ship fixes, block high-risk routes/parameters at the application layer (e.g., WAF/virtual patching engines that understand WordPress semantics):
|
||||
|
||||
- Block unauthenticated POSTs to /wp-json/sure-triggers/v1/connection/create-wp-connection
|
||||
- Enforce capability-aware blocks on <fk-namespace>/plugin/install_and_activate for non-admin callers
|
||||
- For depicter-* actions, drop requests where s contains SQLi metas ("'", '"', '/*', '*/', '--', ';', 'or ', 'union ', 'select '), tuned per-site
|
||||
- For __kubio-site-edit-iframe-classic-template, block traversal patterns (../, ..\) and absolute paths
|
||||
|
||||
Logging: monitor for hits to the above and alert on nonces used pre-auth or surges in depicter-* queries.
|
||||
|
||||
## References
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user