MySQL Instance With Local Infile On
- Query id: a7b520bb-2509-4fb0-be05-bc38f54c7a4c
- Query name: MySQL Instance With Local Infile On
- Platform: Ansible
- Severity: High
- Category: Insecure Configurations
- URL: Github
Description¶
MySQL Instance should not have Local Infile On
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - yaml file
- name: sql_instance
google.cloud.gcp_sql_instance:
auth_kind: serviceaccount
database_version: MYSQL_5_6
name: "{{ resource_name }}-2"
project: test_project
region: us-central1
service_account_file: /tmp/auth.pem
settings:
database_flags:
- name: local_infile
value: on
tier: db-n1-standard-1
state: present
Code samples without security vulnerabilities¶
Negative test num. 1 - yaml file
- name: sql_instance
google.cloud.gcp_sql_instance:
auth_kind: serviceaccount
database_version: SQLSERVER_13_1
name: '{{ resource_name }}-2'
project: test_project
region: us-central1
service_account_file: /tmp/auth.pem
settings:
database_flags:
- name: name1
value: value1
tier: db-n1-standard-1
state: present