| 제목 | ThingsGateway v12 Unauthorized Download Vulnerability |
|---|
| 설명 | ThingsGateway is an open-source Industrial Internet of Things (IIoT) edge computing gateway focused on efficient data collection, edge processing, and reliable forwarding for industrial field devices. The project is designed for real-world industrial scenarios, emphasizing stability, high performance, scalability, and engineering maintainability, making it suitable for various application environments such as industrial automation, energy, power, manufacturing, and building automation.
The system's defense logic (fileName.StartsWith(@"../Logs")) && filePath.Contains("..") was intended to allow access if the path starts with the ../Logs directory (for log reading) while generally disallowing cross-directory access (Contains("..")). However, due to short-circuit evaluation characteristics, if an attacker constructs a fileName starting with ../Logs, the first part of the logical expression !(...) becomes false. This causes the entire && condition to fail, completely bypassing the filePath.Contains("..") validation. |
|---|
| 원천 | ⚠️ https://github.com/SourByte05/SourByte-Lab/issues/11 |
|---|
| 사용자 | sourbyte (UID 94279) |
|---|
| 제출 | 2026. 03. 04. AM 09:40 (7 개월 ago) |
|---|
| 모더레이션 | 2026. 03. 15. PM 07:49 (11 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 351156 [ThingsGateway 12 /api/file/download fileName 디렉토리 순회] |
|---|
| 포인트들 | 20 |
|---|