ReDos
ReDos
Blind Regex Injection
const regExp = require('time-limited-regular-expressions')({ limit: 2 });
app.get("/",(req,res)=>{
return res.render("index.html");
});
app.get("/license",(req,res)=>{
return res.render("license.html");
});
const checkLicense = async (license) => {
try {
const match = await regExp.match(license, process.env.FLAG)
return !!match;
} catch (error) {
return false;
}
}Last updated