generoi/wp-cli-wordfence
最新稳定版本:0.0.2
Composer 安装命令:
composer require generoi/wp-cli-wordfence
包简介
A Wordfence plugin scanner for WP CLI
关键字:
README 文档
README
A WP CLI command packaged as a plugin which uses Wordfence public vulnerablitiy feed to scan all plugins against known security advisories. Note that security advisories without a patch will use exit(0) and thus not detected as an error exit(1)
Requirements
- WP-CLI
Usage
NAME
wp wordfence scan
DESCRIPTION
Scan plugins for vulnerabilities
SYNOPSIS
wp wordfence scan [<Plugin>...] [--email=<email>] [--format=<format>] [--only-errors] [--force] [--verbose]
[<Plugin>...]
One or more plugin slugs to check
[--email=<email>]
Send vulnerability report to email
[--format=<format>]
Format to use: ‘table’, ‘json’, ‘csv’, ‘yaml’, ‘ids’, ‘count’ (default: `table`)
[--only-errors]
Only output errors
[--force]
Force run even if unchanged
[--verbose]
Use verbose output
Example output
+----------------------------------------------------------------------------------+---------------------+-----------+-------------------------------------------------------------------------------------+
| vulnerability | exception | has patch | references |
+----------------------------------------------------------------------------------+---------------------+-----------+-------------------------------------------------------------------------------------+
| WordPress Core - All Versions - Authenticated(Administrator+) PHP File Upload | * < 6.2.2 < * | | https://www.wordfence.com/threat-intel/vulnerabilities/id/0a6707ef-aab7-449c-8160-0 |
| | | | 34bc188a998?source=api-scan |
| WordPress Core <= 6.2 - Unauthenticated Blind Server Side Request Forgery | * < 6.2.2 < * | | https://www.wordfence.com/threat-intel/vulnerabilities/id/112ed4f2-fe91-4d83-a3f7-e |
| | | | af889870af4?source=api-scan |
| Advanced Custom Fields PRO 6.1 - 6.1.7 - Authenticated (Administrator+) Stored C | 6.1 < 6.1.7 < 6.1.7 | yes | https://www.wordfence.com/threat-intel/vulnerabilities/id/77876d74-5825-4bd8-812e-8 |
| ross-Site Scripting | | | 7061d0470e6?source=api-scan |
| WordPress Core - All Known Versions - Cleartext Storage of wp_signups.activation | * < 6.2.2 < * | | https://www.wordfence.com/threat-intel/vulnerabilities/id/9fda5e15-fdf9-4b67-93d3-2 |
| _key | | | dbfa94aefe9?source=api-scan |
| WordPress Core - Informational - All known Versions - Weak Hashing Algorithm | * < 6.2.2 < * | | https://www.wordfence.com/threat-intel/vulnerabilities/id/e5dc87cd-4f45-4faf-b1e2-6 |
| | | | 4e94eacb180?source=api-scan |
+----------------------------------------------------------------------------------+---------------------+-----------+-------------------------------------------------------------------------------------+
Copyright 2012-2023 Defiant Inc.
Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.
https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/
Example Github action
This assumes you're using bedrock and have this package in your composer.json. Open to PRs to make this package self contained so we can install latest version with wp
name: Vulnerabilty Scan on: schedule: - cron: '5 4 * * *' workflow_dispatch: jobs: vulnerability-scan: name: Run vulnerability scan runs-on: ubuntu-latest steps: - name: Checkout Repository (latest) uses: actions/checkout@v3 - name: Read composer.json to env run: | echo 'COMPOSER_JSON<<EOF' >> $GITHUB_ENV cat ./composer.json >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ fromJson(env.COMPOSER_JSON).config.platform.php }} - name: Start MySQL service run: | sudo /etc/init.d/mysql start mysql -e 'CREATE DATABASE db;' -uroot -proot mysql -e "CREATE USER 'db'@'localhost' IDENTIFIED BY 'db';" -uroot -proot mysql -e "GRANT ALL PRIVILEGES ON db.* TO 'db'@'localhost' WITH GRANT OPTION;" -uroot -proot - name: Install packages run: composer install - name: Launch web server run: ./vendor/bin/wp server & - name: Setup .env run: | cp .env.example .env sed -i 's/WP_HOME=.*/WP_HOME=http:\/\/localhost:8080/g' .env sed -i 's/DB_HOST=.*/DB_HOST=localhost/g' .env - name: Install WordPress run: ./vendor/bin/wp core install --url=http://localhost:8080 --title="Bedrock" --admin_user="admin" --admin_password="admin" --admin_email="bedrock@example.test" - name: Run scan run: | ./vendor/bin/wp plugin activate wp-cli-wordfence ./vendor/bin/wp wordfence scan --email=foo@example.org
Development
Install dependencies
composer install
Run the tests
npm -g i @wordpress/env
wp-env start
wp-env run tests-cli --env-cwd=wp-content/plugins/wp-cli-wordfence ./vendor/bin/phpunit
generoi/wp-cli-wordfence 适用场景与选型建议
generoi/wp-cli-wordfence 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 09 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 generoi/wp-cli-wordfence 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 generoi/wp-cli-wordfence 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 generoi/wp-cli-wordfence 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Must-use plugin integrating WordPress with the Upsun platform: environment awareness, router-cache friendliness, safe preview clones, deploy migrations, Site Health checks, and a wp upsun CLI command.
Inertia.js server-side adapter for PHP. Handles full visits, Inertia XHR visits, asset-version 409 handshakes and partial reloads. Framework-agnostic, with transparent WordPress integration.
Adds Cache-Tag HTTP response headers for singular WordPress content and purges Cloudflare by tag when content changes.
AI Chatbot & Helpdesk Agent for WooCommerce. Connects your store to Egentify for AI-powered chat, order tracking, email, and ticketing.
MIDDAG's reference architecture for a WordPress plugin — composes the OSS framework/wordpress/ui libraries end to end.
Assets helper package for the Hybrid Core framework.
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-07