Skip to content

Search query gets rendered as HTML #3485

Closed
@jonasfranz

Description

@jonasfranz
  • Gitea version (or commit ref): 1.4.0+rc1
  • Operating system: Ubuntu Server 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No, because repo indexer is disabled
    • Not relevant

Description

When I enter a HTML tag into the repository search, the query gets rendered as HTML. But it is sort of escaped because only h1, b, i etc. are rendered but without parameters like onload.

Screenshots

Search-Query: <i>

screenshot-2018-2-10 frontend 1

Search-Query: <h1>

screenshot-2018-2-10 frontend

Search-Query: <b>Hello</b><h1>World</h1>

screenshot-2018-2-10 frontend 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/securitySomething leaks user information or is otherwise vulnerable. Should be fixed!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions