/
vitish
/
nodejs-goof
Обзор
Документация
Войти
/
vitish
/
nodejs-goof
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
service/adminService.js
12 строк
359 B
Liran Tal
feat: add open redirect and xss vulns in code (#960)
03 июн 2021, 09:27
Не верифицирован
03 июн 2021, 09:27
6fa7510
Код
Авторство
О чём код?
// @TODO use this adminService file once Snyk Code for VSCode // is able to navigate to cross-file paths in the vuln description /** module.exports.adminLoginSuccess = function(redirectPage, res) { console.log({redirectPage}) if (redirectPage) { return res.redirect(redirectPage) } else { return res.redirect('/admin') } } */