Skip to content

Commit

Permalink
Merge pull request #38 from rtkwlf/AWN-193021-gcp
Browse files Browse the repository at this point in the history
[AWN-193021] Remediation context for google.mysqlLocalInfile
  • Loading branch information
areed42 authored Feb 28, 2023
2 parents c5d2bde + 54890a8 commit 8e21ecf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions en/google/sql/mysql-local-infile-disabled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[![CloudSploit](https://cloudsploit.com/img/logo-new-big-text-100.png "CloudSploit")](https://cloudsploit.com)

# GOOGLE / SQL / MySQL Local Infile Disabled

## Quick Info

| | |
|-|-|
| **Plugin Title** | MySQL Local Infile Disabled |
| **Cloud** | GOOGLE |
| **Category** | SQL |
| **Description** | Ensures SQL instances for MySQL type does not have local infile flag enabled. |
| **More Info** | SQL instances for MySQL type database provides local_infile flag, which can be used to load data from client or server systems. It controls the load data statements for database. Anyone using this server can access any file on the client system. For security reasons it should be disabled. |
| **GOOGLE Link** | https://cloud.google.com/sql/docs/mysql/flags |
| **Recommended Action** | Ensure that local infile flag is disabled for all MySQL instances. |

## Detailed Remediation Steps
1. In the Google Cloud console, create a new Google Cloud console project, or open an existing project by selecting the project name.
2. Open the instance and click Edit.
3. Scroll down to the Flags section.
4. To set a flag that has not been set on the instance before, click Add item, choose the flag from the drop-down menu, and set its value.
5. Click Save to save your changes.
6. Confirm your changes under Flags on the Overview page.

0 comments on commit 8e21ecf

Please sign in to comment.