Remote Code Execution #2674

Closed
opened 2025-11-02 04:44:07 -06:00 by GiteaMirror · 8 comments
Owner

Originally created by @snyff on GitHub (Dec 20, 2018).

The vulnerability impacting Gogs also impacts gitea
https://github.com/gogs/gogs/issues/5558

Description

By using upload file with a malicious filename, an attacker is able to become any users and then gain code execution using hooks.

Gogs already worked on the issue in their develop branch

Screenshots

Me logged in as user_id 1

screen shot 2018-12-20 at 1 25 13 pm
Originally created by @snyff on GitHub (Dec 20, 2018). The vulnerability impacting Gogs also impacts gitea https://github.com/gogs/gogs/issues/5558 - Gitea version (or commit ref): 8dc09ed - Can you reproduce the bug at https://try.gitea.io: - [x] Yes ## Description By using upload file with a malicious filename, an attacker is able to become any users and then gain code execution using hooks. Gogs already worked on the issue in their develop branch ## Screenshots Me logged in as user_id 1 <img width="340" alt="screen shot 2018-12-20 at 1 25 13 pm" src="https://user-images.githubusercontent.com/45491/50260023-bb73b180-045a-11e9-91ff-7100ec3b90ed.png">
GiteaMirror added the topic/security label 2025-11-02 04:44:07 -06:00
Author
Owner

@ghost commented on GitHub (Dec 20, 2018):

Is this responsible disclosure?

@ghost commented on GitHub (Dec 20, 2018): Is this responsible disclosure?
Author
Owner

@snyff commented on GitHub (Dec 20, 2018):

@jhabdas, I didn't know that Gitea and Gogs were sharing the same code base until I learnt a bit more about the projects and the schism. Once I learnt about it, I thought I should give you guys a heads-up.

@snyff commented on GitHub (Dec 20, 2018): @jhabdas, I didn't know that Gitea and Gogs were sharing the same code base until I learnt a bit more about the projects and the schism. Once I learnt about it, I thought I should give you guys a heads-up.
Author
Owner

@lunny commented on GitHub (Dec 20, 2018):

@snyff could you send some detail to security at gitea.io ?

@lunny commented on GitHub (Dec 20, 2018): @snyff could you send some detail to security at gitea.io ?
Author
Owner

@snyff commented on GitHub (Dec 20, 2018):

sent!

@snyff commented on GitHub (Dec 20, 2018): sent!
Author
Owner

@techknowlogick commented on GitHub (Dec 21, 2018):

@snyff thanks for the report. You will be thanked officially in the release blog post, and we appreciate your report 😄

@techknowlogick commented on GitHub (Dec 21, 2018): @snyff thanks for the report. You will be thanked officially in the release blog post, and we appreciate your report 😄
Author
Owner

@snyff commented on GitHub (Dec 21, 2018):

@techknowlogick: thanks for that! Can you thank "@PentesterLab" or "Louis from PentesterLab (pentesterlab.com)" for example instead of snyff.

@snyff commented on GitHub (Dec 21, 2018): @techknowlogick: thanks for that! Can you thank "@PentesterLab" or "Louis from PentesterLab (pentesterlab.com)" for example instead of snyff.
Author
Owner

@techknowlogick commented on GitHub (Dec 21, 2018):

@snyff sounds good. The blog post PR is here: https://github.com/go-gitea/blog/pull/82/files#diff-e0f59ce8bb7e55f0518fc0ecafac06d7 is that suitable, or would you prefer something else.

@techknowlogick commented on GitHub (Dec 21, 2018): @snyff sounds good. The blog post PR is here: https://github.com/go-gitea/blog/pull/82/files#diff-e0f59ce8bb7e55f0518fc0ecafac06d7 is that suitable, or would you prefer something else.
Author
Owner

@snyff commented on GitHub (Dec 21, 2018):

That's perfect!

@snyff commented on GitHub (Dec 21, 2018): That's perfect!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2674