概要
データベース(MySQL・PostgreSQL・MongoDB・Oracle など)が直接の接続を受け付けるポートです。
なぜ危険か
DBポートをインターネットに開くと、資格情報の総当たりや既知CVEの悪用を招き、データセット全体が流出しかねません — 侵害や身代金要求への最短経路です。
対処方法
アプリケーションサーバーや内部ネットワーク(プライベート範囲またはVPN)からのみアクセスを許可し、公開インターフェースでは閉じてください。
サーバーで待ち受けていますか?
Linux
ss -ltnp 'sport = :3306'MySQL / MariaDB の既知の脆弱性
| CVE | タイトル | CVSS | 悪用 | EPSS | 公開日 |
|---|---|---|---|---|---|
| CVE-2004-0627 | The check_scramble_323 function in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to bypass authen... | 10.0 | — | 2004-07-08 | |
| CVE-2004-0628 | Stack-based buffer overflow in MySQL 4.1.x before 4.1.3, and 5.0, allows remote attackers to cause a denial of... | 10.0 | — | 2004-07-08 | |
| CVE-2003-0780 | Buffer overflow in get_salt_from_password from sql_acl.cc for MySQL 4.0.14 and earlier, and 3.23.x, allows att... | 9.0 | — | 2003-09-12 | |
| CVE-2009-2446 | Multiple format string vulnerabilities in the dispatch_command function in libmysqld/sql_parse.cc in mysqld in... | 8.5 | — | 2009-07-14 |