A path traversal vulnerability exists in the parisneo/lollms-webui version 9.3 on the Windows platform. Due to improper validation of file paths between Windows and Linux environments, an attacker can exploit this vulnerability to delete any file on the system. The issue arises from the lack of adequate sanitization of user-supplied input in the del_preset endpoint, where the application fails to prevent the use of absolute paths or directory traversal sequences (..). As a result, an attacker can send a specially crafted request to the del_preset endpoint to delete files outside of the intended directory.
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as “/abs/path” that can resolve to a location that is outside of that directory.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Lollms_web_ui | Lollms | 9.3 (including) | 9.3 (including) |