Repository navigation
Fix for escape spreadsheet formulas when exporting visits as CSV - #2666
Conversation
|
Can you explain in what situation can visits end up having spreadsheet formulas so that it requires escaping? |
Do you know this one: GHSA-ghrv-q878-w45x |
Thanks. The PR description doesn't explain why was this needed. |
Here is an explanation to help you understand: A visitor can use a manipulated user agent and/or referrer to manipulate the CSV export file of visits in such a way that, once opened, unintended formulas or requests could be executed. The requests were sent with the following header data: Then, as an administrator, I export these visits via the CLI:
And receive a CSV file containing the following unmasked - and therefore problematic - values: Note: When exporting via the web interface, all values are (correctly) masked. |
0c2bf19 to
62eb676
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2666 +/- ##
==========================================
Coverage 94.09% 94.09%
Complexity 1608 1608
==========================================
Files 273 273
Lines 5031 5032 +1
==========================================
+ Hits 4734 4735 +1
Misses 297 297 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fix for escape spreadsheet formulas when exporting visits as CSV
Before:
After: