harttle liquidjs
cpe:2.3:a:liquidjs:liquidjs:*:*:*:*:node.js:*:*
- <= 10.25.4
A vulnerability in LiquidJS versions through 10.25.4 allows arbitrary file reading. The issue arises because top-level file loads do not properly enforce the 'root' directory constraint, which is intended to limit file access. As a result, a Liquid instance with an empty temporary directory as root can be manipulated to read and return the contents of any file accessible to the server process.
Exploitation of this vulnerability could lead to unauthorized disclosure of local files, potentially including sensitive information, depending on the application's file access permissions.
To reproduce this vulnerability, create a Liquid instance with an empty temporary directory set as the root. Then, use the 'renderFile' method to request a file outside the root directory, such as '/etc/hosts'. The contents of the requested file will be returned, demonstrating the arbitrary file read capability.
Users are advised to update to LiquidJS version 10.25.3 or later, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.