Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5x1ufsjyvu9RJFUUb
24 lines
829 B
Plaintext
24 lines
829 B
Plaintext
# Approver page: SSE events and an escaped fragment (injected tool argument)
|
|
|
|
tool argument chosen by the model: <img src=x onerror=alert(1)>
|
|
|
|
SSE lines the approver page received:
|
|
event:hello
|
|
data:connected
|
|
event:approval-requested
|
|
data:69b1d486
|
|
event:approval-resolved
|
|
data:69b1d486
|
|
|
|
GET /ui/approvals (the <pre> element):
|
|
<pre>{"flightNumber":"<img src=x onerror=alert(1)>"}</pre>
|
|
|
|
POST /ui/approvals/69b1d486 (approver=alice, deny) ->
|
|
<p class="ok">Decision recorded.</p>
|
|
ledger: []
|
|
|
|
approver.html wiring:
|
|
<!-- The page opens ONE SSE connection. Each event re-runs the hx-get below; the browser never polls. -->
|
|
<body hx-ext="sse" sse-connect="/approvals/stream">
|
|
<div id="pending" hx-get="/ui/approvals" hx-trigger="load, sse:approval-requested, sse:approval-resolved"></div>
|