We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02da718 commit e5e8496Copy full SHA for e5e8496
javascript/ql/lib/semmle/javascript/security/dataflow/CodeInjectionCustomizations.qll
@@ -295,16 +295,16 @@ module CodeInjection {
295
}
296
297
/**
298
- * Writing to a terminal via the `node-pty` library, seen as a code injection sink.
+ * An execution of a terminal command via the `node-pty` library, seen as a code injection sink.
299
* Example:
300
* ```JS
301
* var pty = require('node-pty');
302
* var ptyProcess = pty.spawn("bash", [], {...});
303
* ptyProcess.write('ls\r');
304
* ```
305
*/
306
- class NodePTY extends Sink {
307
- NodePTY() {
+ class NodePty extends Sink {
+ NodePty() {
308
this =
309
API::moduleImport("node-pty")
310
.getMember("spawn")
0 commit comments