Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lin-snow/ech0
  4. ›
  5. GHSA-pj6q-4vq4-r8cg

GHSA-pj6q-4vq4-r8cg: Ech0 allows PUT /api/echo/like/:id unauthenticated: anonymous callers to modify any echo's fav_count

May 7, 2026

PUT /api/echo/like/:id at internal/router/echo.go:12 is registered on PublicRouterGroup with no authentication and no rate limit. Anonymous callers increment the fav_count counter on any echo (including private echoes) by UUID, repeat the request without deduplication, and trigger a database write plus a four-key cache invalidation on every call. Alice harvests echo UUIDs from the public GET /api/echo/page response, inflates fav counts at will, and spams writes to amplify load on the DB and cache layers.

References

  • github.com/advisories/GHSA-pj6q-4vq4-r8cg
  • github.com/lin-snow/Ech0/commit/cecc2c19b590df85d79ea98457faa143130cd620
  • github.com/lin-snow/Ech0/security/advisories/GHSA-pj6q-4vq4-r8cg

Code Behaviors & Features

Detect and mitigate GHSA-pj6q-4vq4-r8cg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.4.8-0.20260503035905-cecc2c19b590

Fixed versions

  • 1.4.8-0.20260503035905-cecc2c19b590

Solution

Upgrade to version 1.4.8-0.20260503035905-cecc2c19b590 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-862: Missing Authorization

Source file

go/github.com/lin-snow/ech0/GHSA-pj6q-4vq4-r8cg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:17 +0000.