mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-28 08:34:22 +00:00
80e168787e
An authenticated admin could set xrayTemplateConfig.log.access/error to an arbitrary path (via the raw Xray editor or a wholesale DB import), making the supervised Xray process write its log there — an arbitrary file write as the Xray user (root in many deployments). resolveXrayLogPaths now reduces any log path to its base filename under config.GetLogFolder(), so absolute paths and ".." traversal can no longer escape the log folder; "" and "none" still disable logging.