Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Deprecated
### Security
- Fixed a DOM-based XSS on the home page: channel/zone/valve names read from the bus were injected into the pool status table via `innerHTML`. They are now set with `textContent` so bus-derived strings can never be parsed as HTML/script.

## [1.6.0] - 2026-06-16
### Changed
Expand Down
4 changes: 3 additions & 1 deletion main/web_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ static esp_err_t home_get_handler(httpd_req_t *req)
"const tb=document.getElementById('pool-body');"
"rows.forEach(([k,v])=>{"
"const tr=document.createElement('tr');"
"tr.innerHTML='<th>'+k+'</th><td>'+v+'</td>';"
"const th=document.createElement('th');th.textContent=k;"
"const td=document.createElement('td');td.textContent=v;"
"tr.appendChild(th);tr.appendChild(td);"
"tb.appendChild(tr);});"
"document.getElementById('pool-loading').hidden=true;"
"document.getElementById('pool-table').removeAttribute('hidden');"
Expand Down