GithubHelp home page GithubHelp logo

Comments (26)

cure53 avatar cure53 commented on September 4, 2024

I am not sure if the author is ready for the solutions to be public.

@filedescriptor What do you think?

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

I am totally okay with that.

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

@filedescriptor Cool :)

@gsingh93 Pull requests are welcome!

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

@filedescriptor As far as I know, this has been fixed in Chromium for some months by now. Should we document the solution from back then?

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

No objection!

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

IIRC it was )},prompt(1)}{{// correct?

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

)},{0:prompt(1 worked. But I'm not sure if yours worked as well.

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Mine worked in a local set-up on Chrome 25. Not sure, what Chrome version it worked in last - and the vectors changed over time due to different with blocks in the browser code.

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

I think we can mention either one - because we focus more on the peculiar instead of the actual implementation.

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Here is a draft version for sanity check:

https://github.com/cure53/XSSChallengeWiki/wiki/prompt.ml#hidden-level--4

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

lgtm!

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Should we add -2 and -3 as well?

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

Sure

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Do you still have the solutions at hand? :) Then I can take care.

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

-2: @if(0)@end (@cc_on is not necessary)
-3: semi-colon instead of ampersand

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

I know - I recall what the way of solving it was, but I didn't wanna spent time on both re-finding the exact solution and doing the write-up - thus asking for the solutions in case you still have them - not just the general way :)

Also not in a hurry here, if you still have the string I'll use it, if not, I'll re-solve :P

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

Ah sorry about that. I don't have the original solutions but I've just tried to recall them:
-2: "><script>@if(0)#@end;prompt(1)@if(0)#@end</script>
For -3, I am not sure if the API has changed but I can't seem to reproduce anymore

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Thanks :D And same here for "-3", just tried as well.

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

I think it was ;callback=prompt(1, - possible?

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

I think it should be something like "onclick=prompt(1) id="a";callback=a.click;
because the callback name is validated. We first create a click event handler, and set the callback to reference to its click function to invoke the payload.

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Ah, fair enough. I will use that. Thx :)

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

Let me know if you need helps :) By the way I think you can also mention that -3 is a scenario for SOME

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Technically not SOME but COME and that sounds very non-beneficial...

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Ready for a sanity check!

from xsschallengewiki.

filedescriptor avatar filedescriptor commented on September 4, 2024

Looks perfect! Finally the write-up is complete, thanks mario :D

from xsschallengewiki.

cure53 avatar cure53 commented on September 4, 2024

Thank you :)

from xsschallengewiki.

Related Issues (14)

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.