WhoDBのデータベース接続URIパラメータインジェクションによるファイル読み取りの脆弱性
タイトル WhoDBのデータベース接続URIパラメータインジェクションによるファイル読み取りの脆弱性
概要

WhoDBはオープンソースのデータベース管理ツールです。影響を受けるバージョンでは、アプリケーションがデータベース接続文字列へのパラメータインジェクションに対して脆弱であるため、攻撃者はアプリケーションが実行されているマシン上のローカルファイルを読み取ることができます。アプリケーションは、データベース接続URIを構築する際に文字列結合を用いますが、この処理は安全な方法で行われていません。そのため、ユーザー入力のエスケープやエンコードがされず、多くの場合ユーザーがURI文字列に任意のパラメータを注入可能になります。これらのパラメータは、利用されるライブラリによっては危険なものとなることがあります。特に、`github.com/go-sql-driver/mysql` ライブラリの `allowAllFiles` パラメータが危険です。これが `true` に設定されると、ライブラリはホストマシン上の任意のファイルで `LOAD DATA LOCAL INFILE` クエリの実行を許可します(この場合、WhoDBが動作しているマシンとなります)。攻撃者は、接続URIに `&allowAllFiles=true` を注入し、自身が管理するMySQLサーバへ接続させることで、ローカルファイルの読み取りを実行できます。この問題はバージョン0.45.0で修正されているため、すべてのユーザーにはアップグレードが推奨されています。既知の回避策はありません。

想定される影響 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
対策

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2025年2月6日0:00
登録日 2026年1月6日10:54
最終更新日 2026年1月6日10:54
CVSS3.0 : 重要
スコア 7.5
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
影響を受けるシステム
Clidey
WhoDB 0.45.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年01月06日]
  掲載
2026年1月6日10:54

NVD脆弱性情報
CVE-2025-24787
概要

WhoDB is an open source database management tool. In affected versions the application is vulnerable to parameter injection in database connection strings, which allows an attacker to read local files on the machine the application is running on. The application uses string concatenation to build database connection URIs which are then passed to corresponding libraries responsible for setting up the database connections. This string concatenation is done unsafely and without escaping or encoding the user input. This allows an user, in many cases, to inject arbitrary parameters into the URI string. These parameters can be potentially dangerous depending on the libraries used. One of these dangerous parameters is `allowAllFiles` in the library `github.com/go-sql-driver/mysql`. Should this be set to `true`, the library enables running the `LOAD DATA LOCAL INFILE` query on any file on the host machine (in this case, the machine that WhoDB is running on). By injecting `&allowAllFiles=true` into the connection URI and connecting to any MySQL server (such as an attacker-controlled one), the attacker is able to read local files. This issue has been addressed in version 0.45.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

公表日 2025年2月7日4:15
登録日 2025年2月8日4:02
最終更新日 2025年2月7日5:15
関連情報、対策とツール
共通脆弱性一覧