大网数据广告活动
服务器运维问答

Confirm user_readenv is off in pam_env module

· 52CE 我爱测

I firstly wanted to say "thank you!" for all the support that I have gained by reading the articles on this site - a major benefit for a web developer donning a sysadmin hat... We are currently working to get our Web Server PCI c…

问题原文

原帖链接 · Jon Freynik · CC BY-SA 3.0

I firstly wanted to say "thank you!" for all the support that I have gained by reading the articles on this site - a major benefit for a web developer donning a sysadmin hat...

We are currently working to get our Web Server PCI compliant and have been going back and forth with TrustWave over CVE-2015-8325. We use a backported version of OpenSSH.

CentOS release 6.8 (Final)
3.2.69-82.art.x86_64
openssh-5.3p1-118.1.el6_8.x86_64

The final thing they are requesting is: "We require confirmation that user_readenv is off in pam_env module on this system."

I am looking for a way to confirm this from the shell but am striking out - per searches online it looks like the setting is disabled by default but I cannot find a way to confirm it.

If I run:

sshd -T

from the shell, its output contains the two following lines:

usepam no
uselogin no

I'm trying to determine if this is the only technique that I can use to get them what they are asking for or if there is a configuration file somewhere that specifically states "user_readenv=0" or something similar.

Thank you for your time, and let me know if you need more information.

=== Update ===

I provided TrustWave with the above information and they have approved the dispute. I still am interested if there is another way to confirm user_readenv is off for pam_env module - but if nothing comes up - I'll just mark the above as the answer - Thanks.

已采纳解答

原帖链接 · Kyle · CC BY-SA 3.0

If you were to be using PAM, and submit the following to Trustwave to dispute CVE-2015-8325:

sshd -T  
usepam yes  
uselogin no  

Then Trustwave requires proof that PAM is configured to not read .pam_environment files in user home directories:

grep READENV /etc/security/pam_env.conf  
READENV         DEFAULT=0  
USER_READENV    DEFAULT=0  

Add those lines for them to accept your dispute.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。