OpenRemoteに認証済みユーザーからSQLを注入される脆弱性、データベースの情報が漏えいするおそれ
Summary
OpenRemoteのデータポイントのCSVクロスタブ出力機能に、SQLインジェクションの脆弱性が見つかりました。アセット名や属性名に細工したSQL文を仕込むと、注入したSELECTの結果がZIP/CSVの応答に含まれ、データベースの情報が漏えいするおそれがあります。影響するのは1.26.0より前のバージョンで、1.26.0で修正されています。対象の製品を利用している場合は、修正版の1.26.0への更新を優先してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
OpenRemoteのデータポイントのCSVクロスタブ出力機能に、SQLインジェクションの脆弱性が見つかりました。アセット名や属性名に細工したSQL文を仕込むと、注入したSELECTの結果がZIP/CSVの応答に含まれ、データベースの情報が漏えいするおそれがあります。影響するのは1.26.0より前のバージョンで、1.26.0で修正されています。対象の製品を利用している場合は、修正版の1.26.0への更新を優先してください。
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com