Skip to content

Commit

Permalink
unmod
Browse files Browse the repository at this point in the history
  • Loading branch information
SokoP Urasoko committed Jan 7, 2025
1 parent bb811de commit 46ac70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/profileImageUrlUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46ac70c

Please sign in to comment.