Skip to content

Verify HTML page reflects receipt fields unescaped (stored XSS) #11

Description

@royalpinto007

Problem

The verify HTML page interpolates receipt fields raw ({p.query}, {p.answer}) with no html.escape anywhere in the file: a stored query like <script>alert(1)</script> renders as live script.

Where

src/answerproof/api.py (_render_page).

Acceptance

Add a failing test first rendering a page with HTML metachars in query/answer, expecting escaped entities and no raw <script>. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions