mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
13 lines
364 B
JavaScript
13 lines
364 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"); // $ Source
|
|
|
|
jwt.verify(taint, 'my-secret-key', function (err, decoded) {
|
|
new JSDOM(decoded.foo, { runScripts: "dangerously" }); // $ Alert
|
|
});
|
|
});
|