
Proof‑of‑concept for CVE‑2024‑58258, a SugarCRM (<13.0.4 / <14.0.1) flaw where user input is parsed as LESS in /css/preview, allowing unauthenticated SSRF or local file access.
This repository provides a proof‑of‑concept for CVE‑2024‑58258, a
SugarCRM (<13.0.4 / <14.0.1) vulnerability where user input is parsed
as LESS in the /css/preview API, allowing unauthenticated SSRF or
local file access.
SugarCRM does not properly sanitize user‑supplied GET parameters in the
/css/preview REST endpoint. The input is interpreted as LESS code,
enabling attackers to inject arbitrary LESS directives.
Abusing @import may allow: - SSRF (Server‑Side Request Forgery) -
Local File Disclosure
This can lead to exposure of internal or sensitive data.
usage: main.py [options] target file_or_url
positional arguments:
target Target SugarCRM URL
file_or_url File path or URL to access
optional arguments:
-p, --proxy PROXY Proxy server
-v, --verbose Verbose output
-t, --test Test vulnerability first
Vulnerability discovered by Egidio Romano.
This project is for educational and research purposes only.
Do not use this proof‑of‑concept on systems without explicit permission.
Unauthorized testing is illegal and unethical.