HTML reporter doesn't escape <>& in finding output #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
engine/reporter.sh, finding evidence and exploit content is inserted directly into HTML without entity escaping. A finding containing<script>alert(1)</script>would execute in the HTML report.Impact: Only affects the report viewer (internal). Not exploitable in the field since the report is local, but still bad practice.
Fix: Add a
html_escape()function that replaces<,>,&,",'before inserting into the HTML template.