mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
8 lines
271 B
JavaScript
8 lines
271 B
JavaScript
const express = require('express');
|
|
const libxmljs = require('libxmljs');
|
|
|
|
express().get('/some/path', function(req) {
|
|
const parser = new libxmljs.SaxPushParser();
|
|
parser.push(req.param("some-xml")); // NOT OK: the SAX parser expands external entities by default
|
|
});
|