mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
const http = require('node:http');
|
|
|
|
http.createServer((req, res) => {
|
|
const { EnvValue } = req.body;
|
|
process.env["A_Critical_Env"] = EnvValue; // NOT OK
|
|
process.env[AKey] = EnvValue; // NOT OK
|
|
process.env.AKey = EnvValue; // NOT OK
|
|
|
|
res.end('env has been injected!');
|
|
});
|