Skip to content

qlog-dancer: escape log-derived text in HTML reports - #2811

Open
uchiha-bug-hunter wants to merge 1 commit into
cloudflare:masterfrom
uchiha-bug-hunter:html-report-escape
Open

uchiha-bug-hunter wants to merge 1 commit into
cloudflare:masterfrom
uchiha-bug-hunter:html-report-escape

Conversation

@uchiha-bug-hunter

Copy link
Copy Markdown

Unescaped log text in the report tables

table_to_html writes cell content out verbatim, and every cell comes from the log being analysed, so a string in the file reaches the output as live markup: an sqlog event named transport:<img src=x onerror=alert(1)> lands as an element in the generated event-list.html, and event_list_html_from_sqlog is also the string the wasm UI passes to set_inner_html. Escaping now happens where the rows are turned into an HtmlTable, which covers the overview, closures, requests and event-list tables plus the session heading in requests(), and the committed test fails without it.

@uchiha-bug-hunter
uchiha-bug-hunter requested a review from a team as a code owner October 7, 2026 14:27
@ghedo ghedo added type: bugfix Corrects defective behavior. area: qlog-dancer Changes related to qlog-dancer. labels Oct 14, 2026
@uchiha-bug-hunter

Copy link
Copy Markdown
Author

gentle ping

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: qlog-dancer Changes related to qlog-dancer. type: bugfix Corrects defective behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants