In gb_jquery_detct.nasl on line 101 the following regex:
pattern = 'src=["\']([^ ]*)(jquery[-.]?([0-9.]+)?(\\.(min|slim|slim\\.min)?)\\.js)';
Will not match anything that does not included min/slim and does not terminate with “…js” because of a missing ? after the next-to-last closing parenthesis making the captured dot mandatory.
Ex, this will not match:
src=“hXXp://example.com/jquery.js”
or
src=“hXXps://code.jquery.com/jquery-1.12.4.js”
You can see the regex expanded here:
https://regexper.com/#src%3D%5B%22%5C’%5D%28%5B%5E%20%5D*%29%28jquery%5B-.%5D%3F%28%5B0-9.%5D%2B%29%3F%28%5C.%28min%7Cslim%7Cslim%5C.min%29%3F%29%5C.js%29
It should probably be modified as such (addition of a question mark at the end):
pattern = 'src=["\']([^ ]*)(jquery[-.]?([0-9.]+)?(\\.(min|slim|slim\\.min)?)?\\.js)';
This makes the captured “.” optional, especially if you don’t have min/slim/etc in the target URL:
Expanded regex visible here: