From 46ac70c73f9a609f1ada674eb83c8d63a1871874 Mon Sep 17 00:00:00 2001 From: SokoP Urasoko Date: Tue, 7 Jan 2025 12:07:44 +0900 Subject: [PATCH] unmod --- routes/profileImageUrlUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/profileImageUrlUpload.js b/routes/profileImageUrlUpload.js index debc161f511..169045f7ef2 100644 --- a/routes/profileImageUrlUpload.js +++ b/routes/profileImageUrlUpload.js @@ -12,7 +12,7 @@ const logger = require('../lib/logger') module.exports = function profileImageUrlUpload () { return (req, res, next) => { if (req.body.imageUrl !== undefined) { - const url = String(req.body.imageUrl) + const url = req.body.imageUrl if (url.match(/(.)*solve\/challenges\/server-side(.)*/) !== null) req.app.locals.abused_ssrf_bug = true const loggedInUser = insecurity.authenticatedUsers.get(req.cookies.token) if (loggedInUser) {