Re:Show HN: Readn – Feed reader with Hacker News support
by mtmail on Friday August 29, 2025 @02:41PM
(#45067848)
This piece of code in hackernews.go could lead to XSS I think
// Main post content (for text posts)
if thread.Content != "" {
html.WriteString(`<div class="hn-content">`)
html.WriteString(thread.Content)
html.WriteString(`</div>`)
// Main post content (for text posts) if thread.Content != "" { html.WriteString(`<div class="hn-content">`) html.WriteString(thread.Content) html.WriteString(`</div>`)
}