让你的 WordPress 安全水平更上一层楼!本项目汇集了海量全新的 Nuclei 模板,用于 WordPress 扫描。扫描核心(Core)、插件和主题中的弱点——全部基于 Wordfence.com 的最新情报。
为什么说它是你的新好朋友:
如果你正在守护 WordPress 网站,这个项目就是你的秘密武器,能在攻击者得手之前识别漏洞。别再浪费时间,像专业人士一样保护你的网站吧!
要安装这个 nuclei-wordfence-cve 仓库以供 Nuclei 使用,你可以运行以下命令:
export GITHUB_TEMPLATE_REPO=topscoder/nuclei-wordfence-cve
nuclei -update-templates
使用上述命令安装此模板仓库后,你可以运行以下命令,使用 Nuclei 扫描漏洞:
nuclei -t github/topscoder/nuclei-wordfence-cve -u https://target.com
Wordfence 提供两个独立的漏洞订阅源。第一个订阅源仅包含生产漏洞,每个漏洞都已分配 CVE。第二个订阅源包含候选漏洞,这些漏洞尚未分配 CVE,并且可能会被提升到生产订阅源,也可能不会。为了区分由这些订阅源生成的模板,每个模板都会被打上一个标签——production 或 candidate——使你可以使用标签过滤器进行精准筛选。
仅包含生产模板:
nuclei -t github/topscoder/nuclei-wordfence-cve -tags production -u https://target.com
仅包含候选模板:
nuclei -t github/topscoder/nuclei-wordfence-cve -tags candidate -u https://target.com
以下是一些如何使用这些模板的示例:
nuclei -t github/topscoder/nuclei-wordfence-cve -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -template-id cve-2023-32961 -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -severity critical -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -tags wp-core -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -tags wp-plugin -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -tags wp-theme -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -tags wp-plugin,wp-theme -severity critical,high
-tc),它支持如下所示的复杂表达式:nuclei -t github/topscoder/nuclei-wordfence-cve -template-condition "contains(to_lower(name),'cross-site scripting') || contains(to_upper(name),'XSS')" -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -template-condition "contains(to_lower(name),'sql injection') || contains(to_lower(description),'sql injection')" -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -template-condition "contains(to_lower(name),'file inclusion') || contains(to_lower(description),'file inclusion')" -u https://target.com
nuclei -t github/topscoder/nuclei-wordfence-cve -template-condition "contains(to_upper(name),'CSRF') || contains(to_upper(description),'CSRF')" -u https://target.com
模板的严重级别会由解析器进行调整,以更好地反映真实世界的影响。src/lib/wordfence_api_parser.py 中的 determine_severity 函数会检查漏洞的标题和描述,并将那些仅限于已认证用户(例如需要登录或拥有提升角色)的问题下调严重级别。
示例(简化版):
authenticated(且不包含 unauthenticated),该函数会将此问题视为较低风险,并返回 Low 而不是更高的 CVSS 标签。这有助于避免将 Medium/High 严重级别分配给仅影响已登录用户的漏洞,从而在扫描可公开访问的网站时减少噪音。
如果你愿意为这个项目贡献力量,欢迎 fork 该仓库并提交 pull request。
本项目基于 MIT 许可证授权。
[!NOTE] ~~ 请负责任地使用它!