2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WordPressをwpscanで脆弱性検査する

2
Last updated at Posted at 2023-04-18

忘備録:WordPressに関する脆弱性検査

脆弱性検査において、WordPressをチェックする必要がありました。

wpscanとwpscan.comは外せないです。Enterprise版も存在し機能が充実しています。

まずは、プラグインやテーマを検査して、脆弱性を検査していきます。ユーザを発見し、パスワードのブルートフォースも可能です。

Kaliでは既存でインストールされています。以下が典型的なコマンド例です。

wpscan --url example.com -e vp --plugins-detection mixed --api-token WPVULNDB_API_TOKEN

詳細は、以下を参考にしてください。

実際は、以下のようなコマンドを叩きます。

wpscan --url $RHOST --enumerate ap,at,cb,dbe vp,u,m --api-token <Your token> --ignore-main-redirect --wp-content-dir http://<Your WP Address>/wp-content 

以下は、すべてのプラグインと登録されているユーザを検査します。

wpscan --url $RHOST --enumerate ap
wpscan --url $RHOST --enumerate u

今回は、スキャンの結果ではなく、HTMLのソースから怪しいプラグインを発見しました。

教訓:
wpscanでスキャン出来ないプラグインもあるため、必ずHTMLのソースコードを確かめること。

追記:パスワードのブルートフォースは以下のようなコマンドです。

wpscan --url http://<IP adderss>:<port>/wordpress/ --passwords cewl.txt --usernames "admin,james"

ハッピーハッキング

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?