正解:A
DIR_MODE=0777 は、新しいホームディレクトリを、誰でも読み取り、書き込み、実行可能(rwxrwxrwx)に設定して作成します。このような許可設定により、権限のないローカルユーザーは誰でも、他のユーザーのホームディレクトリにアクセスし、ファイルの一覧表示、読み取り、さらには変更や置換を行うことができます。そのため、テスターがローカルユーザーアカウントを入手した場合、他のユーザーの機密データが漏洩する可能性が最も高く、かつ即座に発生することになります。
他の選択肢の可能性が低い理由:
* B. 許可されていない sudo 実行: sudo/wheel のメンバーシップまたは /etc/sudoers の明示的なエントリが必要です。
Nothing in the snippet indicates that, and file mode on home dirs doesn't grant sudo.
* C. Hijacking default login shells: DSHELL=/bin/zsh only sets the default shell for new users. Replacing
/bin/zsh or altering /etc/passwd would require root.
* D. Corrupting the skeleton configuration: SKEL=/etc/systemd-conf/temp-skeleton is under /etc/..., which is root-owned on standard systems. A normal user cannot write there, so "corrupting the skeleton" is unlikely without privilege escalation.
Practical exploitation as a non-privileged user (illustrative):
# Find world-writable homes
find /home -maxdepth 1 -type d -perm -0002 -ls
# Read another user's files
cd /home/targetuser && ls -la && cat Documents/tax_return.pdf
(Depending on per-file permissions.)
CompTIA PenTest+ PT0-003 Objective Mapping (for study):
* Domain 3.0 Attacks and Exploits
* 3.1 Exploit system vulnerabilities and misconfigurations (e.g., insecure file permissions leading to data exposure/privilege abuse).