data/reports: add GO-2024-2821.yaml

Aliases: CVE-2024-34084, GHSA-9c5w-9q3f-3hv7

Fixes golang/vulndb#2821
Fixes golang/vulndb#2823

Change-Id: Ic5e98e547b9fd17639416e03b164b11f6cbc1944
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/584256
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tatiana Bradley <tatianabradley@google.com>
diff --git a/data/osv/GO-2024-2821.json b/data/osv/GO-2024-2821.json
new file mode 100644
index 0000000..31526ff
--- /dev/null
+++ b/data/osv/GO-2024-2821.json
@@ -0,0 +1,78 @@
+{
+  "schema_version": "1.3.1",
+  "id": "GO-2024-2821",
+  "modified": "0001-01-01T00:00:00Z",
+  "published": "0001-01-01T00:00:00Z",
+  "aliases": [
+    "CVE-2024-34084",
+    "GHSA-9c5w-9q3f-3hv7"
+  ],
+  "summary": "Denial of Service from untrusted requests in github.com/stacklok/minder",
+  "details": "HandleGithubWebhook is susceptible to a denial of service attack from an untrusted HTTP request. An untrusted request can cause the server to allocate large amounts of memory resulting in a denial of service.",
+  "affected": [
+    {
+      "package": {
+        "name": "github.com/stacklok/minder",
+        "ecosystem": "Go"
+      },
+      "ranges": [
+        {
+          "type": "SEMVER",
+          "events": [
+            {
+              "introduced": "0"
+            },
+            {
+              "fixed": "0.0.48"
+            }
+          ]
+        }
+      ],
+      "ecosystem_specific": {
+        "imports": [
+          {
+            "path": "github.com/stacklok/minder/internal/controlplane",
+            "symbols": [
+              "Server.HandleGitHubWebHook",
+              "Server.StartHTTPServer"
+            ]
+          }
+        ]
+      }
+    }
+  ],
+  "references": [
+    {
+      "type": "ADVISORY",
+      "url": "https://github.com/stacklok/minder/security/advisories/GHSA-9c5w-9q3f-3hv7"
+    },
+    {
+      "type": "FIX",
+      "url": "https://github.com/stacklok/minder/commit/3e5a527d2f1b535159206161d1d519602c75bd0d"
+    },
+    {
+      "type": "WEB",
+      "url": "https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L213-L218"
+    },
+    {
+      "type": "WEB",
+      "url": "https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L337-L342"
+    },
+    {
+      "type": "WEB",
+      "url": "https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L367-L377"
+    },
+    {
+      "type": "WEB",
+      "url": "https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks_test.go#L278-L283"
+    }
+  ],
+  "credits": [
+    {
+      "name": "@AdamKorcz and @DavidKorczynski"
+    }
+  ],
+  "database_specific": {
+    "url": "https://pkg.go.dev/vuln/GO-2024-2821"
+  }
+}
\ No newline at end of file
diff --git a/data/reports/GO-2024-2821.yaml b/data/reports/GO-2024-2821.yaml
new file mode 100644
index 0000000..6021229
--- /dev/null
+++ b/data/reports/GO-2024-2821.yaml
@@ -0,0 +1,32 @@
+id: GO-2024-2821
+modules:
+    - module: github.com/stacklok/minder
+      versions:
+        - fixed: 0.0.48
+      vulnerable_at: 0.0.47
+      packages:
+        - package: github.com/stacklok/minder/internal/controlplane
+          symbols:
+            - Server.HandleGitHubWebHook
+            - Server.StartHTTPServer
+summary: Denial of Service from untrusted requests in github.com/stacklok/minder
+description: |-
+    HandleGithubWebhook is susceptible to a denial of service attack from an
+    untrusted HTTP request. An untrusted request can cause the server to allocate
+    large amounts of memory resulting in a denial of service.
+cves:
+    - CVE-2024-34084
+ghsas:
+    - GHSA-9c5w-9q3f-3hv7
+credits:
+    - '@AdamKorcz and @DavidKorczynski'
+references:
+    - advisory: https://github.com/stacklok/minder/security/advisories/GHSA-9c5w-9q3f-3hv7
+    - fix: https://github.com/stacklok/minder/commit/3e5a527d2f1b535159206161d1d519602c75bd0d
+    - web: https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L213-L218
+    - web: https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L337-L342
+    - web: https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks.go#L367-L377
+    - web: https://github.com/stacklok/minder/blob/ee66f6c0763212503c898cfefb65ce1450c7f5ac/internal/controlplane/handlers_githubwebhooks_test.go#L278-L283
+source:
+    id: GHSA-9c5w-9q3f-3hv7
+    created: 2024-05-08T14:06:25.679756-07:00