Vulnerability Scanning for Compliance

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 等保扫描漏洞

| username: TiDBer_aZrsY0ca

How to solve these issues found in the security assessment scan?

| username: 啦啦啦啦啦 | Original post link

You can directly change the MySQL version number. This vulnerability is actually unrelated to TiDB and is used for compatibility purposes. Refer to this:

| username: changpeng75 | Original post link

Find someone who specializes in compliance; they make money from this.

| username: dba远航 | Original post link

Upgrade the version or apply a patch.

| username: TiDBer_aZrsY0ca | Original post link

Upgrade the TiDB version?

| username: 啦啦啦啦啦 | Original post link

Upgrading the TiDB version is useless. The security scan treats TiDB as MySQL, and the MySQL version number is only used for compatibility and has no practical significance. The vulnerabilities detected are not actually TiDB vulnerabilities, so you can bypass the scan by directly changing the MySQL version number in TiDB.

| username: TiDBer_jYQINSnf | Original post link

This can all be modified, :+1:

| username: TiDBer_aZrsY0ca | Original post link

Okay, let’s give it a try, thank you.

| username: Kongdom | Original post link

:yum: This is all the result of predecessors’ step-by-step efforts.

| username: TiDBer_aZrsY0ca | Original post link

How to check the MySQL version corresponding to TiDB through SELECT VERSION();? If the result is 8.0.11-TiDB-v7.4.0, does it mean that the TiDB version corresponds to 8.0.11?

| username: 啦啦啦啦啦 | Original post link

TiDB is version 7.4.0, and MySQL is 8.0.11. The security vulnerability scan shows vulnerabilities present in MySQL 8.0.11. Updating to the latest version of MySQL should resolve these issues.

| username: zhaokede | Original post link

Modify the configuration server-version to make the scan unable to identify the corresponding version.

| username: Kongdom | Original post link

The person above is right.

| username: zhanggame1 | Original post link

Change the version number. I changed 5.7 to 5.7.99. Now that it’s compatible with MySQL 8, change it to 8.0.99, and nothing will be reported for compliance.

| username: kkpeter | Original post link

666 can be used like this

| username: zhanggame1 | Original post link

Changing it to something that doesn’t exist means it’s impossible to detect vulnerabilities. Changing it to something that exists means vulnerabilities will eventually be detected.

| username: 哈喽沃德 | Original post link

They usually only find problems.

| username: TiDBer_5Vo9nD1u | Original post link

Suggestions for fixes are usually provided.

| username: YuchongXU | Original post link

Modify the version number.

| username: Fly-bird | Original post link

The vulnerabilities found during compliance scans are generally difficult to resolve. Upgrading to the latest version will address some of the issues, but not all of them.