LinkedIn – CSV Excel formula injectionvoidsec
We are proud to publish an undisclosed vulnerability affecting LinkedIn and in particular its “CSV Export” function.
Following our Vulnerability Disclosure Policy Agreement, LinkedIn Security Team has been informed about this specific issue and this vulnerability will be published without a working PoC.
s users can exports all their connections into a CSV file, that due to some missing filters (escaping output), could allows an attacker to execute a command on the user machine.</p>
<p style="text-align: justify;">An attacker can create a LinkedIn profile embedding a malicious payload in its details ex. "<em>Company Name</em>", "<em>Position</em>", etc.
as soon as the user who has accepted the attacker in his contacts will export and try to open the CSV file he will see a warning message.</p>
<p style="text-align: justify;"><a href="https://voidsec.com/wp-content/uploads/2016/04/likedin-export.png"><img class="aligncenter wp-image-2619" src="https://voidsec.com/wp-content/uploads/2016/04/likedin-export-1024x509.png" alt="likedin-export" width="640" height="318" /></a></p>
<p style="text-align: justify;">Assuming that the content is coming from a trusted source, linkedin.com, the user will skip the warning message and the <strong>malicious payload</strong> gets executed.</p>
<p style="text-align: justify;"><a href="https://voidsec.com/wp-content/uploads/2016/04/linkedin_exec.png"><img class="aligncenter wp-image-2620 size-full" src="https://voidsec.com/wp-content/uploads/2016/04/linkedin_exec.png" alt="linkedin_exec" width="622" height="272" /></a>
<strong>Attack Scenario:</strong> An attacker creates a valid profile and add multiple connections, later he will change one of his profile field into a malicious payload. From now on, all the users that will export the connection into a CSV file and open it with Microsoft Excel will execute the malicious payload.
Now, imagine if I will embed a malware/trojan as a payload, how many recruiters and executives will give me the access to their company network?
LinkedIn Mitigations: The best and easiest solution is to surround with a double quote all CSV fields.
User Mitigation: do not enable macro or dynamic content coming from an excel file, even if the website is trusted.
by Nitin Goplani & VoidSec