Discovered 6 months ago
Source: static code analysis
Category: Cross-Site Scripting
Confidence level: Weak


Unescaped model attribute



t("unsubscribe.stop_watching_topic", :link => render_topic_title((UnsubscribeKey.find_by(:key => params[:key]).post.topic or UnsubscribeKey.find_by(:key => params[:key]).topic)))

Category description: XSS occurs when a user-manipulatable value is displayed on a web page without escaping it, allowing someone to inject Javascript or HTML into the page.

Solution: fix the issue in app/views/email/unsubscribe.html.erb or mark it as false positive.