mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
14 lines
359 B
JavaScript
14 lines
359 B
JavaScript
var express = require('express');
|
|
var app = express();
|
|
import jwt from "jsonwebtoken";
|
|
|
|
import { JSDOM } from "jsdom";
|
|
app.get('/some/path', function (req, res) {
|
|
var taint = req.param("wobble");
|
|
|
|
jwt.verify(taint, 'my-secret-key', function (err, decoded) {
|
|
// NOT OK
|
|
new JSDOM(decoded.foo, { runScripts: "dangerously" });
|
|
});
|
|
});
|