pam_mysql Authentication Input...

- AV AC AU C I A
发布: 2000-10-26
修订: 2025-04-13

pam_mysql is a PAM (pluggable authentication module) module that allows system administrators to setup authentication schemes using MySQL databases as a back-end. Because user input is not checked for SQL query metacharacters, pam_mysql has two vulnerabilities that can lead to local and remote compromise. In versions of pam_mysql prior to 0.4, it is possible for users who have local access to the filesystem to view the passwords or password hashes stored in the database. When a user authenticates, pam_mysql executes this query to retrieve the user's password (or password hash): select password from users where user = '<user>' The value "<user>", the user-supplied login name, is not checked for metacharacters. As a result it is possible to enter a login-name like this: "root' into file /tmp/owned;". This will cause MySQL to write the result of the query (the value of root's password in the database) to a file when it is executed. If it is a password hash, the attacker can then...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息