pam_usbにXRDP拒否をすり抜けられる脆弱性
Summary
pam_usbで、環境変数XRDP_SESSIONの確認が安全でない方法で行われており、利用者が環境変数を消すことで、リモート接続の拒否ルールを回避できる脆弱性が見つかりました。影響を受けるのは0.9.3より前のバージョンで、0.9.3で修正されています。ほかのリモート判定の仕組みで検知される場合もありますが、環境変数による判定だけは無効になります。0.9.3以降への更新を進めてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
pam_usbで、環境変数XRDP_SESSIONの確認が安全でない方法で行われており、利用者が環境変数を消すことで、リモート接続の拒否ルールを回避できる脆弱性が見つかりました。影響を受けるのは0.9.3より前のバージョンで、0.9.3で修正されています。ほかのリモート判定の仕組みで検知される場合もありますが、環境変数による判定だけは無効になります。0.9.3以降への更新を進めてください。
Original description The description as published by the source.
pam_usb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c reads XRDP_SESSION with plain getenv(3) at the head of pusb_local_login while every other env consumer in the same function uses secure_getenv(3). When pam_usb.so loads into a setuid PAM host, the calling user controls the environment passed in. Clearing XRDP_SESSION before invoking the host bypasses the explicit XRDP-deny rule. Other remote-detection signals (rmsvc, evdev, loginctl, utmp) may still catch the session, but the env-based detection alone is defeated. This issue has been patched in version 0.9.3.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- report github.com
- web github.com