Description
Armatiek XSLWeb through 4.2.0 contains a path traversal vulnerability in the unzip XPath extension function that allows attackers to write files outside the extraction directory via crafted archive entries. Attackers can supply archives with ../ sequences or absolute paths processed by ZipUtils.unzipStream() to overwrite XSLT stylesheets in webapp directories, leading to remote code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Armatiek | XSLWeb | ≤ 4.2.0 | — |
References
- https://github.com/Armatiek/xslweb/commit/518c9edc2be904d9928092e2495fb696eac8f618 patch
- https://re-sync.nl/en/blog/xslweb-zip-slip/ third-party-advisory technical-description
- https://github.com/Armatiek/xslweb/blob/v4.2.0/src/main/java/nl/armatiek/xslweb/utils/ZipUtils.java#L102-L127 technical-description
- https://github.com/Armatiek/xslweb/blob/v4.2.0/src/main/java/nl/armatiek/xslweb/saxon/functions/zip/Unzip.java#L83-L117 technical-description
- VulnCheck Advisory: Armatiek XSLWeb through 4.2.0 Path Traversal (Zip Slip) via unzip Extension Function third-party-advisory