C
月内に
Hack The Boxの「Fries」マシンを対象とした、NFSの認証不備を利用した特権昇格の解説記事です
📌 一言でいうと
Hack The Boxの「Fries」マシンを対象とした、NFSの認証不備を利用した特権昇格の解説記事です。NFSのAUTH_SYS設定によりサーバーがクライアントのUID/GIDを信頼する脆弱性を突き、権限を偽装してDocker証明書やActive Directoryの証明書を取得し、最終的にドメイン管理者権限を奪取する手法が詳述されています。pgAdminの脆弱性やLDAPパスワードの傍受など、複合的な攻撃チェーンが組み合わされています。
🔍該当判定
- 社内でNFS(ネットワークファイルシステム)を利用してファイル共有を行っている
- NFSの認証設定で「AUTH_SYS」を使用している(ユーザーIDをそのまま信頼する設定)
- Windows環境でDockerコンテナを運用し、そこから社内ネットワークへアクセスできる状態にある
- Active Directory環境で、NFS共有フォルダに証明書や設定ファイルを保存している
上記いずれにも該当しない → 静観でOK
✅該当時の対応
NFSの認証方式をAUTH_SYSからKerberosなどの強力な認証方式に変更し、クライアント側で偽装可能なUID/GIDに依存しない設定を導入してください。
📧 メール案を見る (管理者向け)
⚠️ これは AI が生成した参考例です。配信前に必ず内容をご確認のうえ、貴社の状況に合わせて編集してご利用ください。実際の被害状況や自社の利用環境を踏まえた判断は、貴社のセキュリティ責任者にご確認ください。
件名: 【共有】NFS AUTH_SYS 設定による権限偽装リスクについて
お疲れさまです。NFSの認証設定に関するセキュリティリスクの情報共有です。
■ 概要
NFSでAUTH_SYS認証を使用している場合、サーバーはクライアントが報告するUID/GIDを信頼するため、攻撃者がクライアント側でユーザーIDを偽装することで、本来アクセスできないファイルや証明書を奪取できるリスクがあります。
■ 影響範囲
- NFS (AUTH_SYS) を利用してファイル共有を行っているサーバーおよびクライアント
■ 対応手順
1. NFS共有設定を確認し、AUTH_SYS ではなく Kerberos 等のセキュアな認証方式への移行を検討してください。
2. ネットワークセグメンテーションを徹底し、信頼できないホストからのNFSアクセスを制限してください。
3. 特権的な証明書や機密ファイルをNFS共有上に配置しないようにしてください。
■ 参考情報
- Hack The Box 'Fries' Write-up (xakep)
対応優先度: 中
対応期限: 次回定期メンテナンス時まで
お疲れさまです。NFSの認証設定に関するセキュリティリスクの情報共有です。
■ 概要
NFSでAUTH_SYS認証を使用している場合、サーバーはクライアントが報告するUID/GIDを信頼するため、攻撃者がクライアント側でユーザーIDを偽装することで、本来アクセスできないファイルや証明書を奪取できるリスクがあります。
■ 影響範囲
- NFS (AUTH_SYS) を利用してファイル共有を行っているサーバーおよびクライアント
■ 対応手順
1. NFS共有設定を確認し、AUTH_SYS ではなく Kerberos 等のセキュアな認証方式への移行を検討してください。
2. ネットワークセグメンテーションを徹底し、信頼できないホストからのNFSアクセスを制限してください。
3. 特権的な証明書や機密ファイルをNFS共有上に配置しないようにしてください。
■ 参考情報
- Hack The Box 'Fries' Write-up (xakep)
対応優先度: 中
対応期限: 次回定期メンテナンス時まで
Subject: [Security Info] Risk of Privilege Escalation via NFS AUTH_SYS
Dear IT Administration team,
We are sharing technical information regarding the risks associated with NFS AUTH_SYS authentication.
■ Overview
When NFS is configured with AUTH_SYS, the server trusts the UID/GID provided by the client. An attacker can spoof these identifiers on the client side to gain unauthorized access to sensitive files, such as Docker or AD certificates, leading to full system or domain compromise.
■ Scope
- Servers and clients utilizing NFS with AUTH_SYS authentication.
■ Mitigation Steps
1. Review NFS configurations and migrate from AUTH_SYS to more secure authentication methods, such as Kerberos.
2. Implement strict network segmentation to limit NFS access to trusted hosts only.
3. Avoid storing sensitive credentials or certificates on NFS shares.
■ Reference
- Hack The Box 'Fries' Write-up (xakep)
Priority: Medium
Deadline: Next scheduled maintenance window
Dear IT Administration team,
We are sharing technical information regarding the risks associated with NFS AUTH_SYS authentication.
■ Overview
When NFS is configured with AUTH_SYS, the server trusts the UID/GID provided by the client. An attacker can spoof these identifiers on the client side to gain unauthorized access to sensitive files, such as Docker or AD certificates, leading to full system or domain compromise.
■ Scope
- Servers and clients utilizing NFS with AUTH_SYS authentication.
■ Mitigation Steps
1. Review NFS configurations and migrate from AUTH_SYS to more secure authentication methods, such as Kerberos.
2. Implement strict network segmentation to limit NFS access to trusted hosts only.
3. Avoid storing sensitive credentials or certificates on NFS shares.
■ Reference
- Hack The Box 'Fries' Write-up (xakep)
Priority: Medium
Deadline: Next scheduled maintenance window