Git Product home page Git Product logo

Comments (7)

cujanovic avatar cujanovic commented on July 17, 2024

Can you please provide the specific payloads so I can check? Thanks.

from markdown-xss-payloads.

marcelo321 avatar marcelo321 commented on July 17, 2024

i edited the last comment with the proper payload that appears to not work in any browser. Those are a result of this payload

![a](javascript:prompt(document.cookie))\ and this ![a](data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K)\

But you should just check the above payloads directly in all browsers, it just doesn't work anymore.

from markdown-xss-payloads.

cujanovic avatar cujanovic commented on July 17, 2024

Well in proper context this payloads work:
https://localdomain.pw/xss/?ahref=javascript:alert(9)
https://localdomain.pw/xss/?ahref=javascript:prompt(document.cookie)

On the other hand the payload doesn't work:
https://localdomain.pw/xss/?ahref=data:text/html;base64,PHNjcmlwdD5hbGVydCgnWFNTJyk8L3NjcmlwdD4K

But the payload without base64 works:
https://localdomain.pw/xss/?ahref=data:text/html,%3Cscript%3Ealert(1)%3C/script%3E

I'm going to close this, if some payloads don't work on modern browsers, there is always an option to try some legacy browsers.

P.S. This payloads were collected from various BB reports so they all worked once in some libs.

from markdown-xss-payloads.

marcelo321 avatar marcelo321 commented on July 17, 2024

@cujanovic
hmmm the examples you gave me are from <a href="payload" and we all know that those work fine. the examples i gave you are from
<img src="payload"> that don't work anymore in any browser.

from markdown-xss-payloads.

cujanovic avatar cujanovic commented on July 17, 2024

I don't think that they ever worked in img src context, they were always in a href context in markdown not in img src.

from markdown-xss-payloads.

cujanovic avatar cujanovic commented on July 17, 2024

https://michelf.ca/blog/2010/markdown-and-xss/

from markdown-xss-payloads.

marcelo321 avatar marcelo321 commented on July 17, 2024

yea that might be true, then delete those payloads haha because they don't work.

from markdown-xss-payloads.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.