fix: rate-limit /manifest.webmanifest route (CodeQL #9)

Applies the existing apiLimiter middleware to the manifest route,
which performs a DB lookup without prior rate limiting.

Closes https://github.com/ulsklyc/oikos/security/code-scanning/9
This commit is contained in:
Ulas Kalayci
2026-05-09 10:09:29 +02:00
parent ee53f1cfd7
commit 4aaa6a1589
+1 -1
View File
@@ -176,7 +176,7 @@ app.get('/api/v1/version', (req, res) => {
res.json({ version: APP_VERSION, app_name: appName });
});
app.get('/manifest.webmanifest', (req, res) => {
app.get('/manifest.webmanifest', apiLimiter, (req, res) => {
let appName = DEFAULT_APP_NAME;
try {
const row = db.get().prepare('SELECT value FROM sync_config WHERE key = ?').get('app_name');