How we exploited a code execution vulnerability in math.js
capacitorset.github.io
How we exploited a code execution vulnerability in math.js
1–10 of 32 posts
Re: How we exploited a code execution vulnerability in math.js
#2Good job! Thanks for posting
Re: How we exploited a code execution vulnerability in math.js
#3You can actually get access to require using this bug: cos.constructor("return process.mainModule.require")()
Re: How we exploited a code execution vulnerability in math.js
#4The math.js api appears to be broken right now, it just says "error: method.apply is not a function"
Re: How we exploited a code execution vulnerability in math.js
#5That's the definition of a clean presentation. Very clean. Well done.
Re: How we exploited a code execution vulnerability in math.js
#6[deleted]
Re: How we exploited a code execution vulnerability in math.js
#7I was bored so I found a bunch more:
Re: How we exploited a code execution vulnerability in math.js
#8So the vulnerability is online in the service of mathjs.org:
Math.js is available as a RESTful web service: http://api.mathjs.orgRe: How we exploited a code execution vulnerability in math.js
#9EDIT: removed my suggestion since it was unsafe.
Thanks for pointing it out.
I was hoping vm to offer you an isolated v8 interpreter without bindings that could used as a sandbox, but this wasn't the case.
Re: How we exploited a code execution vulnerability in math.js
#10The math.js api appears to be broken right now, it just says "error: method.apply is not a function"
Probably related to the second exploit which used apply.