Skip to content

Commit 6e7a2e6

Browse files
authored
check for empty password or authentication_string column (#52)
Signed-off-by: Sebastian Gumprich <[email protected]>
1 parent 174db71 commit 6e7a2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controls/mysql_db.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
control 'mysql-db-05' do
5555
impact 1.0
5656
title 'default passwords must be changed'
57-
describe command("mysql -u#{user} -p#{pass} -sN -e 'select count(*) from mysql.user where length(password)=0 or password=\"\";'") do
57+
describe command("mysql -u#{user} -p#{pass} -sN -e 'select count(*) from mysql.user where (length(password)=0 or password=\"\") and (length(authentication_string)=0 or authentication_string=\"\");'") do
5858
its(:stdout) { should match(/^0/) }
5959
end
6060
end

0 commit comments

Comments
 (0)