Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Img src vulnerability?

Hi everyone

I've found a website where i can inject Javascript but only certain html tags. Tags like script aren't accepted. However, the website does accept img tags so I can display images and call php scripts. All of this is fun and all but I was wondering if there is something more exciting that you can do with it like exploiting the website or getting the cookies of the page.


If anyone knows something, you can post it.
(Jun 8, 2022 03:23 PM)Newbyte Wrote:  I was wondering if there is something more exciting that you can do with it like exploiting the website or getting the cookies of the page.


If anyone knows something, you can post it.


Iframes, as in

< iframe src="https://linkinporkhf.github.io" >

Second answer in this StackOverflow thread shows how you can make a full-page version of it, essentially allowing you to totally deface the webpage https://stackoverflow.com/questions/1771...age-iframe
Regards,
Porky
ℒ𝒶𝓊ℊ𝒽𝒾𝓃ℊ 𝒶𝓉 𝓎ℴ𝓊𝓇 𝓈ℯ𝒸𝓊𝓇𝒾𝓉𝓎 𝓈𝒾𝓃𝒸ℯ... ℯ𝓋ℯ𝓇.
In order to get the cookies, you must trigger some JavaScript.
But you can use the image src to send data your way once you found a way to gather it.
[Image: 6KMyuYs.png]
(Jun 8, 2022 11:24 PM)shatter Wrote:  The  redirect from one of those examples can be used for an activity that is disallowed to be discussed here.

What do you mean?
(Jun 9, 2022 03:24 AM)Newbyte Wrote:  What do you mean?


Disallowed BlackHat Activity

Listen to [mention=4963606] , he spends enough time in the Blackhat section to know this better than most.
Regards,
Porky
ℒ𝒶𝓊ℊ𝒽𝒾𝓃ℊ 𝒶𝓉 𝓎ℴ𝓊𝓇 𝓈ℯ𝒸𝓊𝓇𝒾𝓉𝓎 𝓈𝒾𝓃𝒸ℯ... ℯ𝓋ℯ𝓇.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by FS1337May 28, 2023 09:23 AM 0 164 May 28, 2023 09:23 AM
Last Post: FS1337
by Gee4rceApr 19, 2021 06:47 AM 26 4,021 Apr 19, 2021 06:47 AM
Last Post: theghostofgreen
by HackingFatherJan 11, 2020 07:32 AM 0 364 Jan 11, 2020 07:32 AM
Last Post: HackingFather