Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

x/vulndb: potential Go vuln in gogs.io/gogs: GHSA-ff28-f46g-r9g8 #597

Closed
julieqiu opened this issue Aug 1, 2022 · 3 comments
Closed

x/vulndb: potential Go vuln in gogs.io/gogs: GHSA-ff28-f46g-r9g8 #597

julieqiu opened this issue Aug 1, 2022 · 3 comments
Assignees
Labels
excluded: NOT_IMPORTABLE This vulnerability only exists in a binary and is not importable.

Comments

@julieqiu
Copy link
Member

julieqiu commented Aug 1, 2022

In GitHub Security Advisory GHSA-ff28-f46g-r9g8, there is a vulnerability in the following Go packages or modules:

Unit Fixed Vulnerable Ranges
gogs.io/gogs 0.12.7 < 0.12.7

See doc/triage.md for instructions on how to triage this report.

packages:
  - package: gogs.io/gogs
    versions:
      - fixed: 0.12.7
description: |
    ### Impact

    The malicious user is able to upload a crafted SVG file as the issue attachment to archive XSS. All installations [allow uploading SVG (`text/xml`) files as issue attachments (non-default)](https://github.com/gogs/gogs/blob/e51e01683408e10b3dcd2ace65e259ca7f0fd61b/conf/app.ini#L283-L284) are affected.

    ### Patches

    Correctly setting the Content Security Policy for the serving endpoint. Users should upgrade to 0.12.7 or the latest 0.13.0+dev.

    ### Workarounds

    [Disable uploading SVG files (`text/xml`) as issue attachments](https://github.com/gogs/gogs/blob/e51e01683408e10b3dcd2ace65e259ca7f0fd61b/conf/app.ini#L283-L284).

    ### References

    https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d/

    ### For more information

    If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6919.
published: 2022-05-24T20:48:14Z
last_modified: 2022-05-24T20:48:17Z
cves:
  - CVE-2022-1464
ghsas:
  - GHSA-ff28-f46g-r9g8
links:
    context:
      - https://github.com/advisories/GHSA-ff28-f46g-r9g8

@tatianab
Copy link
Contributor

tatianab commented Aug 3, 2022

Code is not importable

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/592769 mentions this issue: data/reports: unexclude 50 reports

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/607221 mentions this issue: data/reports: unexclude 20 reports (19)

gopherbot pushed a commit that referenced this issue Aug 21, 2024
  - data/reports/GO-2022-0573.yaml
  - data/reports/GO-2022-0576.yaml
  - data/reports/GO-2022-0577.yaml
  - data/reports/GO-2022-0578.yaml
  - data/reports/GO-2022-0579.yaml
  - data/reports/GO-2022-0580.yaml
  - data/reports/GO-2022-0583.yaml
  - data/reports/GO-2022-0584.yaml
  - data/reports/GO-2022-0585.yaml
  - data/reports/GO-2022-0590.yaml
  - data/reports/GO-2022-0591.yaml
  - data/reports/GO-2022-0593.yaml
  - data/reports/GO-2022-0595.yaml
  - data/reports/GO-2022-0597.yaml
  - data/reports/GO-2022-0599.yaml
  - data/reports/GO-2022-0600.yaml
  - data/reports/GO-2022-0602.yaml
  - data/reports/GO-2022-0604.yaml
  - data/reports/GO-2022-0606.yaml
  - data/reports/GO-2022-0608.yaml

Updates #573
Updates #576
Updates #577
Updates #578
Updates #579
Updates #580
Updates #583
Updates #584
Updates #585
Updates #590
Updates #591
Updates #593
Updates #595
Updates #597
Updates #599
Updates #600
Updates #602
Updates #604
Updates #606
Updates #608

Change-Id: Ia252601b7fb2d97b5dfa7d95d14ebbb1b9cc0459
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/607221
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
excluded: NOT_IMPORTABLE This vulnerability only exists in a binary and is not importable.
Projects
None yet
Development

No branches or pull requests

4 participants