Description
GoatCounter through 2.7.0 contains a CSV formula injection vulnerability in exportcsv.go that allows remote unauthenticated attackers to store spreadsheet formulas by sending crafted count endpoint requests. Attackers can inject values beginning with =, +, - or @ into page titles, referrers or event paths, which execute when the site owner opens the exported CSV to exfiltrate spreadsheet data.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| arp242 | GoatCounter | ≤ 2.7.0 | — |
References
- https://github.com/arp242/goatcounter/blob/v2.7.0/exportcsv.go#L61-L91 technical-description
- https://github.com/arp242/goatcounter/blob/v2.7.0/hit.go#L73-L77 technical-description
- VulnCheck Advisory: GoatCounter through 2.7.0 CSV Formula Injection via Pageview Export third-party-advisory