X-headers, what and why?

Contents Intro X-Content-Type-Options X-XSS-Protection X-Frame-Options Summary… » DEV Community | dev.to

28 de mayo de 2021 · 1 min · 11 palabras · Nacho Cano

Never trust an upload's filename

It’s generally accepted that we should never simply trust a user’s input. Otherwise, we’re vulnerable… » DEV Community | dev.to

22 de mayo de 2021 · 1 min · 20 palabras · Nacho Cano

Locking Down Your Website Scripts with CSP, Hashes, Nonces and Report URI

I run a workshop titled Hack Yourself First in which people usually responsible for building web apps get to try their hand at breaking them. As it turns out, breaking websites is a heap of fun (with the obvious caveats) and people really get into the exercises. The first one that starts to push people into territory that’s usually unfamiliar to builders is the module on XSS. » Troy Hunt’s Blog | troyhunt.com

15 de noviembre de 2017 · 1 min · 73 palabras · Nacho Cano

Brainfuck beware: JavaScript is after you!

I just made a tool to transform any javascript code into an equivalent sequence of ()[]{}!+ characters. You can try it here, or grab it from github or npm. Keep on reading if you want to know how it works. What do you know about non-alphanumeric XSS? The other day one of my friends asked me that question on IRC, pointing me to some articles on sla.ckers.org where they tried to create some scripts like alert(1) with non-alphanumeric characters. As a security researcher and a penetration tester, he insisted that extending that concept to any javascript source would be really useful for bypassing IDSs, IPSs and WAFs. So challange accepted! ...

13 de agosto de 2012 · 1 min · 115 palabras · Nacho Cano

Symfony en Ubuntu Lucid Lynx 10.04

Symfony es una framework MVC escrito en PHP para el desarrollo rápido de páginas web. Además, ofrece un conjunto de buenas prácticas para desarrollar páginas más seguras y con un coste de mantenimiento menor. Para que la instalación sea más segura, los ficheros de Symfony debería estar fuera del DocumentRoot. Requisitos Symfony se basa en entorno LAMPP, por lo que suponemos que ya tenemos configurado Apache, MySQL y PHP versión 5.2.4 o superior. Para comprobar si todo está correctamente configurado y que cumplimos los requerimientos para Symfony, descargamos siguiente script y lo ejecutamos, pasando como parámetro la ruta al archivo php.ini que utiliza apache (por defecto, al ejecutarlo desde el terminal en lugar del navegador, utiliza otro archivo php.ini): ...

3 de junio de 2012 · 7 min · 1302 palabras · Nacho Cano

UnicodeDecodeError con Wapiti

Wapiti es un escáner de vulnerabilidades web basado en fuzzing. En la última versión, 2.2.1, permite detectar vulnerabilidades referente a: Errores de gestión de ficheros (include/require local y remoto, fopen, readfile...) Database Injection (PHP/JSP/ASP SQL Injections y XPath Injections) XSS (Cross Site Scripting) Injection LDAP Injection Command Execution detection (eval(), system(), passtru()…) CRLF Injection (HTTP Response Splitting, session fixation…) Sin embargo, si usamos Ubuntu Natty Narwhal, la versión de los repositorios es la 1.1.6, por lo que es posible que nos encontremos el siguiente error al escanear páginas que contengan caracteres no ASCII. Por ejemplo: ...

28 de mayo de 2011 · 2 min · 238 palabras · Nacho Cano