OpenRemoteに認証済みユーザーからSQLを注入される脆弱性、データベースの情報が漏えいするおそれ
概要
OpenRemoteのデータポイントのCSVクロスタブ出力機能に、SQLインジェクションの脆弱性が見つかりました。アセット名や属性名に細工したSQL文を仕込むと、注入したSELECTの結果がZIP/CSVの応答に含まれ、データベースの情報が漏えいするおそれがあります。影響するのは1.26.0より前のバージョンで、1.26.0で修正されています。対象の製品を利用している場合は、修正版の1.26.0への更新を優先してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
OpenRemoteのデータポイントのCSVクロスタブ出力機能に、SQLインジェクションの脆弱性が見つかりました。アセット名や属性名に細工したSQL文を仕込むと、注入したSELECTの結果がZIP/CSVの応答に含まれ、データベースの情報が漏えいするおそれがあります。影響するのは1.26.0より前のバージョンで、1.26.0で修正されています。対象の製品を利用している場合は、修正版の1.26.0への更新を優先してください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
OpenRemote is an open-source internet-of-things platform. Prior to 1.26.0, the datapoint export API constructs CSV crosstab SQL by concatenating an asset name and attribute name into a COPY query that uses crosstab and streams TO STDOUT. The asset name enters both a double-quoted column identifier and a category query enclosed by the fixed $cat$ delimiter. Escaping single quotes in one string context does not escape embedded double quotes in identifiers or protect that dollar-quote boundary. An authenticated user permitted to create or rename an asset and read/export datapoints for one of its attributes can store SQL metacharacters in the name and request a crosstab export, causing injected SELECT output to be returned in the normal ZIP/CSV response. This enables database exfiltration without direct database or filesystem access or token forgery. In a multi-tenant deployment it can expose other tenants' data if the manager's database role can read shared tables; integrity and availability effects are not established by the demonstrated read primitive. This issue is fixed in version 1.26.0.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com