XSS in PR review comments #2575

Closed
opened 2025-11-02 04:40:56 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Aragur on GitHub (Nov 26, 2018).

  • Gitea version (or commit ref): 0dcf31a
  • Git version: not relevant
  • Operating system: not relevant
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The review comment screen allows XSS. (Doesn't sanitize input)

Screenshots

image

Originally created by @Aragur on GitHub (Nov 26, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 0dcf31a - Git version: not relevant - Operating system: not relevant - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant - Log gist: ## Description The review comment screen allows XSS. (Doesn't sanitize input) ## Screenshots ![image](https://user-images.githubusercontent.com/11004008/49023943-9ca23800-f198-11e8-9194-977bbf273ed7.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the topic/securityreviewed/wontfix labels 2025-11-02 04:40:56 -06:00
Author
Owner

@jonasfranz commented on GitHub (Nov 27, 2018):

Thank you for reporting, but I think that this is not a XSS since <h1> etc. are valid markdown stylings. I've tested it for malicious code like iFrames or JS. These get filtered out like normal comment. There is no difference between the santization of comments and PR comments.

Please reopen if you've another opinion.

@jonasfranz commented on GitHub (Nov 27, 2018): Thank you for reporting, but I think that this is not a XSS since `<h1>` etc. are valid markdown stylings. I've tested it for malicious code like iFrames or JS. These get filtered out like normal comment. There is no difference between the santization of comments and PR comments. Please reopen if you've another opinion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2575