Skip to Content
Seguridad de las aplicaciones web
book

Seguridad de las aplicaciones web

by Andrew Hoffman
October 2024
Intermediate to advanced
330 pages
8h 53m
Spanish
O'Reilly Media, Inc.
Content preview from Seguridad de las aplicaciones web

Capítulo 22. Defenderse de los ataques XSS

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

En la Parte II, analizamos en profundidad los ataques XSS que se aprovechaban de la capacidad del navegador para ejecutar código JavaScript en los dispositivos de los usuarios. Las vulnerabilidades XSS están muy extendidas y son capaces de causar una cantidad significativa de daños, ya que las vulnerabilidades de ejecución de scripts tienen una gran amplitud de daños potenciales.

Afortunadamente, aunque el XSS aparece a menudo en la web, es bastante fácil de mitigar o prevenir por completo mediante buenas prácticas de codificación segura y técnicas de mitigación específicas del XSS. Este capítulo trata sobre cómo proteger tu código base del XSS.

Buenas prácticas de codificación Anti-XSS

Hay una regla importante que puedes implementar en tu equipo de desarrollo para mitigar drásticamente las probabilidades de encontrarte con vulnerabilidades XSS: "no permitas que ningún dato suministrado por el usuario se pase al DOM, excepto como cadenas".

Esta regla no es aplicable a todas las aplicaciones, ya que muchas de ellas tienen funciones que incorporan usuarios a la transferencia de datos del DOM. En este caso, podemos hacer esta regla más específica: "nunca permitas que se pasen al DOM datos no saneados proporcionados por el usuario".

Permitir que los datos proporcionados por el usuario rellenen el DOM debería ser una opción ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Arquitectura de seguridad para la nube híbrida

Arquitectura de seguridad para la nube híbrida

Mark Buckwell, Stefaan Van daele, Carsten Horst
Ingeniería del caos de la seguridad

Ingeniería del caos de la seguridad

Kelly Shortridge, Aaron Rinehart
Manual de seguridad defensiva, 2ª edición

Manual de seguridad defensiva, 2ª edición

Lee Brotherston, Amanda Berlin, William F. Reyor

Publisher Resources

ISBN: 9798341607279