Kuma/server
Gabriel Ngandu-Biseba 1515ab09be Fix codeQL error
------
Call "tmpdir()" a single time inside "database.js" and remove "caFilePath" from the config if the path starts with the temporary directory path as a failsafe

Fix whitespace

Move the unassignment of " dbConfig.ssl" and " dbConfig.ssl" outside the block responsible to move the CA file from the temporary directory to the data directory

Fix inverted "if" condition. Also add "path.resolve" to a path check in order to make sure that we are comparing absolute paths with each others

Remove unnecessary check for a ".pem" file, simplify the path check and fix the file copying to itself

Add additional path checks to avoid filename exploits

Fix issue where the temp directory used to temporarily store the CA file is within the working directory instead of the OS provided temp directory path
2025-04-03 14:33:36 +02:00
..
jobs Data migration and history retention for 2.0.0 (#5075) 2024-10-26 20:50:29 +08:00
model Update TLS expiration warning (#5659) 2025-03-07 21:49:38 +01:00
modules BugFix:Regular Expression in parseDuration Function (#5563) 2025-01-22 19:03:38 +01:00
monitor-conditions Monitor Conditions (#5048) 2024-08-30 21:48:13 +02:00
monitor-types Merge branch 'master' into 1.23.X-to-2 2024-12-20 15:38:45 +08:00
notification-providers feat: add notification provider PushPlus (#5716) 2025-03-26 17:31:34 +01:00
routers fix: slug input (#5239) 2024-11-26 01:56:23 +01:00
socket-handlers fix: slug input (#5239) 2024-11-26 01:56:23 +01:00
utils Fix: Knex cannot set a default value for TEXT field (MariaDB) (#5261) 2024-10-28 13:16:22 +08:00
2fa.js Add JSDoc to server/* 2022-04-20 19:56:40 +01:00
auth.js Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00
check-version.js Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00
client.js Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00
config.js Remove linter comments automatically added by editor 2024-12-06 13:33:37 +01:00
database.js Fix codeQL error 2025-04-03 14:33:36 +02:00
docker.js Made sure that more of the async usages are awaited (#4574) 2024-03-15 15:02:55 +01:00
embedded-mariadb.js Fix: Embedded MariaDB startup issue (#5283) 2024-11-05 20:25:08 +08:00
google-analytics.js Merge branch '1.23.X' into 1.23.X-merge-to-2.X.X-2 2023-11-25 03:25:03 +08:00
image-data-uri.js Added JSDoc to ESLint (#3529) 2023-08-11 15:46:41 +08:00
jobs.js Added JSDoc to ESLint (#3529) 2023-08-11 15:46:41 +08:00
notification.js feat: add notification provider PushPlus (#5716) 2025-03-26 17:31:34 +01:00
password-hash.js Added JSDoc to ESLint (#3529) 2023-08-11 15:46:41 +08:00
prometheus.js Revert "Extend Prometheus Labels to include tags (requires restart for NEW labels on the monitor to be visible)" (#5174) 2024-10-09 07:17:11 +08:00
proxy.js chore(deps): upgrade http/https/socks proxy agents (#5548) 2025-01-26 14:21:40 +01:00
rate-limiter.js Added JSDoc to ESLint (#3529) 2023-08-11 15:46:41 +08:00
remote-browser.js 🐛 fix(remote-browser): Remove unused test() function (#4155) 2023-12-03 20:27:09 +08:00
server.js Fix: Docker Healthcheck is not happy during migration (#5258) 2024-10-27 13:22:23 +08:00
settings.js Added JSDoc to ESLint (#3529) 2023-08-11 15:46:41 +08:00
setup-database.js Fix codeQL error 2025-04-03 14:33:36 +02:00
uptime-calculator.js Data migration and history retention for 2.0.0 (#5075) 2024-10-26 20:50:29 +08:00
uptime-kuma-server.js feat: add RabbitMQ monitor (#5199) 2024-10-20 15:57:03 +02:00
util-server.js Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00