@hclsoftware/secagent
Version:
IAST agent
29 lines (25 loc) • 989 B
JavaScript
//IASTIGNORE
/*
* ****************************************************
* Licensed Materials - Property of HCL.
* (c) Copyright HCL Technologies Ltd. 2017, 2025.
* Note to U.S. Government Users *Restricted Rights.
* ****************************************************
*/
const StackInfo = require('../StackInfo')
const TaintTracker = require('../TaintTracker')
// // ejs resolveInclude
// module.exports.resolveInclude = (origFunction) => {
// return function () {
// const taintArg = arguments[0]
// if (!TaintTracker.isObjectTainted(taintArg)) {
// return origFunction.apply(this, arguments)
// }
// arguments[0] = arguments[0].toString()
// const stringResponse = origFunction.apply(this, arguments)
// const objResponse = new String(stringResponse)
// TaintTracker.propagateTaint(taintArg, objResponse, this.toString(), origFunction.name, JSON.origStringify(arguments), stringResponse)
// return stringResponse
// }
// }