一个概念验证工具,利用WordPress的批量路由混乱漏洞演示未经身份验证的SQL注入和远程命令执行链。

Stars

613

7 天增长

+140

Fork 数

143

开放 Issue

1

开源协议

MIT

最近更新

2026-07-23

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它提供了从预认证到RCE的完整攻击链,包括新颖的SQL注入到管理员桥梁,支持多种注入技术且依赖极少。

适合谁使用

  • 分析WordPress核心漏洞的安全研究人员
  • 需要评估自身暴露程度的WordPress站点管理员
  • 进行授权安全测试的渗透测试人员
  • CTF参赛者和教育性漏洞利用开发者

典型使用场景

  • 检测WordPress站点是否存在wp2shell SQL注入漏洞
  • 通过SQL注入提取数据库内容,如用户哈希或自定义查询
  • 利用SQL注入创建管理员账户并上传插件来执行命令
  • 为培训或报告演示完整的攻击路径

项目优势

  • 无第三方依赖(仅使用Python标准库)
  • 支持多种SQL注入技术(UNION、错误回显、盲注)并自动回退
  • 自动化整个预认证到RCE流程,包括清理生成的账户和后门
  • 包含非破坏性检查模式,仅使用标记探测而不发送SQL注入载荷

使用前须知

  • 仅适用于特定的易受攻击WordPress版本(6.9.0–6.9.4, 7.0.0–7.0.1)
  • 主动SQL注入确认和shell步骤可能被Web应用防火墙(WAF)拦截
  • 命令执行需要提供管理员凭据或成功执行预认证桥接,在加固环境中可能失败

README 快速开始

wp2shell-poc

Independent proof-of-concept for the unauthenticated WordPress REST batch route-confusion SQL injection associated with Searchlight Cyber's wp2shell advisory.

This repository is not Searchlight Cyber's official checker. check confirms the SQLi path, read demonstrates database read, and shell opens a plugin-backed command shell either with supplied administrator credentials or by first exercising the SQLi-to-admin bridge.

Detection / IoCs: Elastic Security Labs and Eye Security published detection guidance and indicators for this chain. See the Elastic write-up and the Eye Security defenders guide.

Affected versions

Searchlight Cyber's advisory lists these wp2shell RCE exposure ranges:

Version rangeStatus
[options]

Or `pip install .` to get a `wp2shell` command on your `PATH`.

### check — non-destructive vulnerability check

Prints passive WordPress markers and public version hints first, then sends a benign batch marker
probe. A vulnerable batch implementation returns HTTP 207 with the route-confusion marker pattern
`parse_path_failed`, `block_cannot_read`, and `rest_batch_not_allowed`.

The marker probe is based on the WordPress core fix. The malformed `///` request creates
`parse_path_failed`; a `/wp/v2/posts` request acts as a batch-allowed spacer; the
`/wp/v2/block-renderer/...` route is not batch-allowed but returns `block_cannot_read` if its
handler is reached anonymously; `/batch/v1` gives `rest_batch_not_allowed`. On vulnerable builds
the parse error shifts the batch handler arrays out of step, so the spacer request is dispatched
under the block-renderer handler. Fixed builds keep the arrays aligned, so this exact all-three
pattern should not appear for the crafted probe.

By default, `check` stops there and does not send an SQLi payload. Use `--confirm-sqli` when you
also want an active SQLi confirmation. The confirmation tries the UNION read primitive first and
falls back to paired timing probes if UNION reflection is unavailable.

The signals are independent: a version hint is only a hint, the marker pattern shows route
confusion, and `--confirm-sqli` shows a payload reached the database. A WAF can block the payload,
so a failed

项目描述

wp2shell (CVE-2026-63030 & CVE-2026-60137) - full RCE chain

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
littledivy
精选
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI 与机器学习
1,482