form-to-google-sheets
form-to-google-sheets copied to clipboard
Form vulnerable to malicious fomulae
Hi Jamie, it's best to sanitise the data submitted to Google Sheets by removing any "=" characters. Right now anyone using your code is at risk of all their Sheet's data being exfiltrated from the sheet by a malicious =IMPORTDATA formula. Kind regards, Ollie
@Ollie-Boyd Can you please help me with an instance of the same.
Replace
e.parameter[header]
with
e.parameter[header].replace(/=/g,'')
or similar