Damus
hypolite · 3w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 Code is only malicious when it's retrieved and displayed. This is why all template var...
Random Penguin profile picture
@hypolite I wasn't really thinking about SQL injection, I was thinking about malicious JS code getting written to the front-end and executed by an add-on that just uses a hook that injects it somewhere in the page code like the head, footer, etc.

I tested this by entering an annoying JS script into the text field and saving it. Where the add-on displays the user text from that setting, sure enough it wrote it <script> tags and all into the page and executed it. That doesn't seem like something that should be possible to do.
1
hypolite · 3w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqjyfhtfwc40hrc7pxrxvp5ztve3nz4lc4yrxguq2saxpycwmre78q6m9q72 Did you use template variable interpolation?