CSV Injection while export users in fossbilling/fossbilling
Reported on
Jun 30th 2023
1 admin add a client, or a client signup.
2 the client logins and edit himeself
3 the client change his COMPANY as "=1+cmd|'/C calc'!A0"
4 admin go to export the client as a csv file
5 admin open the csv and we can see that the calculator is opened.
see https://owasp.org/www-community/attacks/CSV_Injection to fix it
Impact
Hijacking the user’s computer
Exfiltrating contents from the spreadsheet, or other open spreadsheets.
Exporting Comments is also vulnerabe.
Thanks, this pull requests resolves this by escaping any formulas when exporting a CSV: https://github.com/FOSSBilling/FOSSBilling/pull/1391