1. What is HTML Injection?
Well, I guess you know that is not HTML? As a web programming language, of course.
Quote from: wikipediaHTML, stands for HyperText Markup Language (Hypertext Markup Language) is the predominant markup language for building web pages. It is used to describe the structure and content as text, as well as to supplement the text with objects such as images. HTML is written in the form of tags, surrounded by angle brackets ( < ,> ).
HTML can also describe, to some degree, the appearance of a document, and may include a script (JavaScript), which can affect the behavior of web browsers and other HTML processors.
It is the base language for websites, which is quite important.
Then the HTML Injection will inject HTML code into other web pages (like JavaScript scripts, exploiting a vulnerability.
2. Why does this happen?
Because an administrator does not filter properly neglected html tags allowing such attacks.
2.1. Where is attacked?
Well html code to be injected is a normal text field, usually in many guestbooks or tagboards made by fans to the lineup.
3. They are all vulnerable?
So logically NO. only occurs when the filtering of bad labels.
3.1. How to find a vulnerable?
Dorks we can use to try or just for books. Then use some Dorks our friend Google, we can find things like this:
* [Select] Guestbook
allinurl: guestbook.php
allinurl: visitas.php book
allinurl: visitas.php
etc.
By looking for things like HTML code activated ...
Well, at last into a web guestbook. 3.2. As a check is vulnerable?
Well, getting a code directly (not doing anything wrong, so that no suspicious nobody). Here we will put into practice our knowledge of HTML.
Write in the book, for example:
* [Select] < h1 > HolaY if we see the word Hello is that big is vulnerable.
* [Select] < marquee > Hello < / marquee > And if we see the word Hello moving from one side to another, it is vulnerable.
4. Begin to have fun! (Y)
Bieen! Now we can have fun and do evil or be good and alert the administrator
We can fill the screen is written in large, EVERYTHING! If you have knowledge of HTML you're a lot of fun, and if you have JavaScript on much more ..
For example write:
* [Select] < script > alert (HTML Injection) < / script >
Magic! Appeared with a message MsgBox HTML Injection!
You can insert images, etc. .. But consider this:
Something very good is also a mount with an index and upload it to deface a website .. and imagine that the URL is like this:
*[Select] http :// www .mideface .com /index .html
So we just have to insert the following in the guestbook ..
* [Select] < META HTTP-EQUIV = " refresh " CONTENT = "1; http :// www .mideface .com / index .html url =" .. and directly GuestBook we are redirected to our index!
Well, from here is what you want... HTML code should join me otherwise it was impossible to post ... thanks
.............................................................................
1. Que es HTML Injection?
Bueno, supongo que saben que es el HTML no? Pues un lenguaje de programacion web, por supuesto.
Cita de: wikipediaHTML, siglas de HyperText Markup Language (Lenguaje de Marcas de Hipertexto), es el lenguaje de marcado predominante para la construcción de páginas web. Es usado para describir la estructura y el contenido en forma de texto, así como para complementar el texto con objetos tales como imágenes. HTML se escribe en forma de "etiquetas", rodeadas por corchetes angulares ( <,> ). HTML también puede describir, hasta un cierto punto, la apariencia de un documento, y puede incluir un script (por ejemplo Javascript), el cual puede afectar el comportamiento de navegadores web y otros procesadores de HTML.
Es el lenguaje base para hacer paginas web estaticas, lo que es bastante importante.
Entonces el HTML Injection va de inyectar codigo HTML en otras paginas web (al igual que scripts en JavaScript, aprovechando una vulnerabilidad.
2. Por que ocurre esto?
Pues porque un descuidado administrador no filtro adecuadamente las etiquetas html permitiendo este tipo de ataques.
2.1. Por donde se ataca?
Pues al ser inyectar code html lo normal es por un campo de texto, casi siempre en muchos libros de visitas o tagboards hechos por aficionados a la programacion.
3. Son todos vulnerables?
Pues logicamente NO. solo se produce cuando aparece el mal filtrado de las etiquetas.
3.1. Como encontramos una vulnerable?
Pues podemos usar dorks o simplemente ir probando por los libros. Entonces utilizaremos algunos dorks con nuestro amigo Google; podemos buscar cosas asi:
* [Seleccionar]Libro de Visitas
allinurl:guestbook.php
allinurl:libro-visitas.php
allinurl:visitas.php
etc.
O buscando cosas como Codigo HTML activado...
Bueno, al fin entramos a una web con Libro de Visitas.
3.2. Como comprobamos si es vulnerable?
Pues directamente metiendo un code (que no haga nada malo, para que no desconfie nadie). Aqui pondremos en practica nuestros conocimientos sobre HTML.
Escribamos en el Libro, por ejemplo:
*[Seleccionar]< h1 >HolaY si nos aparece la palabra Hola muy grande es que es vulnerable.
*[Seleccionar]< marquee >Hola < / marquee >Y si nos aparece la palabra Hola moviendose de un lado a otro es que es vulnerable.
4. Empecemos a divertirnos! (Y)
Bien! Ahora podemos divertirnos y hacer maldades, o ser buenos y avisar al administrador
Podemos llenarle la pantalla de cosas escritas en grande, de TODO! Si tienes conocimientos sobre HTML te vas a divertir mucho, y si tienes sobre JavaScript mucho mas aun..
Por ejemplo escribamos:
* [Seleccionar]< script >alert(HTML Injection)< / script >
Aparecio un MsgBox con el mensaje HTML Injection!
Podemos insertar imagenes, etc.. pero lo mejor:
Algo muy bueno tambien es montarnos un index con un deface y subirlo a una web.. e imaginemos que la URL es asi:
* [Seleccionar] http: //www .mideface .com/ index. html
Entonces solo tenemos que insertar lo siguiente en el libro de visitas..
Código: [Seleccionar]< META HTTP-EQUIV= "refresh" CONTENT= "1; url= http: //www .mideface .com/ index.html"
..y directamente el Libro de Visitas se nos redireccionara a nuestro index!
Y bueno, a partir de aqui se hace lo que uno quiera...cada codigo HTML deben juntarlos de otro modo me era imposible postearlo... gracias

No hay comentarios:
Publicar un comentario