Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

138
Vistas
Is there a security risk/vulnerability in having a page on your site that can effectively redirect to any other page on the site?

Let's say I have this controller action

    public IActionResult LandingPage(string path)
    {
        ViewBag.path = path;
        return View();
    }

and in that view is just javascript that will take that path variable out of the viewbag and redirect to whatever's in it like below

<script>         
    var path= '@ViewBag.path';
    window.location.replace('../' + path);
</script>

essentially allowing for the client to reach any path on the site. Does this pose any security risks in allowing a savvy user to put whatever they want in the redirect path?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda