Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Embedding XSS in an image


bl4ckc4t's Avatar
Banned
0 0

Ok, I have been wondering how people do this. Ive tried hex editting, using photoshop to hide a script behind a layer, and even looking at videos. not even google has helped me. Anyone know how to approach this or know how to do it? Its to test the security on a my friends website and I want to make a custom image that does this.

Bl4ckC4t


bl4ckc4t's Avatar
Banned
0 0

Rebirth wrote: Note pad, that is all there is to it.

Notepad doesnt create images.


ghost's Avatar
0 0

hex editor would work, I think note pad might work but note pd doesnt display all characters.


ghost's Avatar
0 0

i dont think that you are literally supposed to put the javascript into the pictrure coding itself. all you have to do is <img src="javascript:alert('xss')"> i am pretty sure.


ghost's Avatar
0 0

chislam wrote: i dont think that you are literally supposed to put the javascript into the pictrure coding itself. all you have to do is <img src="javascript:alert('xss')"> i am pretty sure.

its used to trick people into clicking on an image link, then it sends their cookies to another site..


ghost's Avatar
0 0

gdam double post


ghost's Avatar
0 0

are you willing to share your code?