I am working on fixing a potential security issue. I ran my HP fortify SCA and I got a critical priority report on my jquery.js file.
Category : Dynamic Code Evaluation: Code Injection (3 Issues).
I looked at the source code and it turns out to be the line where the setTimeout()
eval code sits.
if (s.async && s.timeout) {
timeoutTimer = setTimeout( function() {
jqXHR.abort("timeout");
}, s.timeout );
}
with a try catch block preceding.
I did a couple of digging and they say do not mess with the third party source code, you may be tampering with other functionalities. I'm thinking just suppress and move on? I usually do not like to suppress critical.
Any ideas?