fix(api): neutralize formula injection in the issue export#354
fix(api): neutralize formula injection in the issue export#354cavidelizade wants to merge 1 commit into
Conversation
Issue, project and state names were written straight into spreadsheet cells, so a title like =HYPERLINK(...), +cmd, -2+3 or @sum(...) became a live formula when the exported .xlsx was opened. Titles are user-controlled, so this was a stored-then-exported injection. Prefix any cell text that starts with =, +, -, @, tab or CR with a single quote so it's treated as literal text. Closes Devlaner#331 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 49 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Issue, project and state names were written straight into spreadsheet cells, so a work item title like
=HYPERLINK(...),+cmd,-2+3or@SUM(...)became a live formula when the exported.xlsxwas opened in Excel, LibreOffice or Sheets. Titles are user-controlled, so anyone who can create an issue could plant one and whoever exported and opened the file would trigger it.Linked issues
Closes #331
Type of change
fix:)Surface
apps/api/)What changed
Added
neutralizeFormula, which prefixes any cell text starting with=,+,-,@, tab or CR with a single quote so the spreadsheet treats it as literal text. Applied it to every cell value in the workbook builder. Non-string values pass through untouched.Test plan
go build,go vet,go test ./...green, including the newTestNeutralizeFormulaAI assistance
Claude Code (Opus 4.8), commits carry aCo-Authored-By:trailer