WordPress セキュリティをレベルアップさせましょう!このプロジェクトには、WordPress 向けの新しい Nuclei テンプレートが山のように詰まっています。コア、プラグイン、テーマの弱点を、Wordfence.com の最新インテルに基づいてスキャンできます。
これが、あなたの新しいベストフレンドになる理由です:
WordPress サイトを守っているなら、このプロジェクトは、悪意ある攻撃者よりも先に脆弱性を特定するための秘密兵器です。時間を無駄にするのはやめて、プロのようにサイトを保護しましょう!
Nuclei で使用するためにこの nuclei-wordfence-cve リポジトリをインストールするには、次のコマンドを使用します:
export GITHUB_TEMPLATE_REPO=topscoder/nuclei-wordfence-cve
nuclei -update-templates
上記のコマンドでこのテンプレートリポジトリをインストールしたら、次のコマンドを実行して Nuclei で脆弱性をスキャンできます:
nuclei -t github/topscoder/nuclei-wordfence-cve -u https://target.com
Wordfence は脆弱性情報を2つの独立したフィードで提供します。最初のフィードには、CVE が割り当てられた本番(production)の脆弱性のみが含まれます。2つ目のフィードには、まだ CVE が割り当てられていない候補(candidate)の脆弱性が含まれ、それらは本番フィードに昇格する場合もあれば、されない場合もあります。これらのフィードから生成されたテンプレートを区別するために、各テンプレートには production または candidate のタグが割り当てられており、タグフィルターで対象を絞り込むことができます。
production テンプレートのみを含める:
nuclei -t github/topscoder/nuclei-wordfence-cve -tags production -u https://target.com
candidate テンプレートのみを含める:
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 ではない場合)、その関数は問題のリスクがより低いと見なし、より高い CVSS ラベルの代わりに Low を返します。これにより、ログインユーザーにのみ影響する脆弱性に Medium/High の深刻度を割り当てることを防ぎ、公開サイトをスキャンする際のノイズを減らすことができます。
このプロジェクトに貢献したい場合は、お気軽にリポジトリをフォークしてプルリクエストを送信してください。
このプロジェクトは MIT ライセンスの下で提供されています。
[!NOTE] ~~ 責任を持って使用してください! ~~