commit
2d12880d05
|
@ -2,7 +2,7 @@ id: js-libraries-detect
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Common JS Libraries - Detection
|
name: Common JS Libraries - Detection
|
||||||
author: adamparsons,cbadke,ChetGan,ErikOwen,jacalynli
|
author: adamparsons,cbadke,ChetGan,ErikOwen,jacalynli,geeknik
|
||||||
severity: info
|
severity: info
|
||||||
description: Checks a target web app for inclusion of common JavaScript libraries
|
description: Checks a target web app for inclusion of common JavaScript libraries
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -241,6 +241,63 @@ headless:
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- action: script
|
||||||
|
name: fingerprintD3
|
||||||
|
args:
|
||||||
|
code: |
|
||||||
|
() => {
|
||||||
|
try {
|
||||||
|
return d3.version || "";
|
||||||
|
} catch (e) {}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
- action: script
|
||||||
|
name: fingerprintThreeJs
|
||||||
|
args:
|
||||||
|
code: |
|
||||||
|
() => {
|
||||||
|
try {
|
||||||
|
return THREE.REVISION || "";
|
||||||
|
} catch (e) {}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
- action: script
|
||||||
|
name: fingerprintChartJs
|
||||||
|
args:
|
||||||
|
code: |
|
||||||
|
() => {
|
||||||
|
try {
|
||||||
|
return Chart.version || "";
|
||||||
|
} catch (e) {}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
- action: script
|
||||||
|
name: fingerprintSlick
|
||||||
|
args:
|
||||||
|
code: |
|
||||||
|
() => {
|
||||||
|
try {
|
||||||
|
// Assuming Slick Carousel is used as a jQuery plugin
|
||||||
|
return $.fn.slick.version || "";
|
||||||
|
} catch (e) {}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
|
- action: script
|
||||||
|
name: fingerprintSelect2
|
||||||
|
args:
|
||||||
|
code: |
|
||||||
|
() => {
|
||||||
|
try {
|
||||||
|
// Assuming Select2 is used as a jQuery plugin
|
||||||
|
return $.fn.select2.version || "";
|
||||||
|
} catch (e) {}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
matchers-condition: or
|
matchers-condition: or
|
||||||
matchers:
|
matchers:
|
||||||
- type: dsl
|
- type: dsl
|
||||||
|
@ -259,7 +316,11 @@ headless:
|
||||||
- len(fingerprintDojoJs) > 0
|
- len(fingerprintDojoJs) > 0
|
||||||
- len(fingerprintDomPurify) > 0
|
- len(fingerprintDomPurify) > 0
|
||||||
- len(fingerprintModernizr) > 0
|
- len(fingerprintModernizr) > 0
|
||||||
|
- len(fingerprintD3) > 0
|
||||||
|
- len(fingerprintThreeJs) > 0
|
||||||
|
- len(fingerprintChartJs) > 0
|
||||||
|
- len(fingerprintSlick) > 0
|
||||||
|
- len(fingerprintSelect2) > 0
|
||||||
extractors:
|
extractors:
|
||||||
- name: axios
|
- name: axios
|
||||||
type: regex
|
type: regex
|
||||||
|
@ -344,4 +405,33 @@ headless:
|
||||||
part: fingerprintModernizr
|
part: fingerprintModernizr
|
||||||
regex:
|
regex:
|
||||||
- ^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
- ^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
|
||||||
# digest: 490a0046304402204106a779627713aa63ece4bc679f6b08764d94f26d55ca7482a8135cb4a99f89022074e3eff829289082075eb2b6443484212d58cec4ff2a607952e6cd04d73651bc:922c64590222798bb761d5b6d8e72950
|
|
||||||
|
- name: d3
|
||||||
|
type: regex
|
||||||
|
part: fingerprintD3
|
||||||
|
regex:
|
||||||
|
- "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
||||||
|
|
||||||
|
- name: threejs
|
||||||
|
type: regex
|
||||||
|
part: fingerprintThreeJs
|
||||||
|
regex:
|
||||||
|
- "^(0|[1-9]\\d*)$"
|
||||||
|
|
||||||
|
- name: chartjs
|
||||||
|
type: regex
|
||||||
|
part: fingerprintChartJs
|
||||||
|
regex:
|
||||||
|
- "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
|
||||||
|
|
||||||
|
- name: slick
|
||||||
|
type: regex
|
||||||
|
part: fingerprintSlick
|
||||||
|
regex:
|
||||||
|
- "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
|
||||||
|
|
||||||
|
- name: select2
|
||||||
|
type: regex
|
||||||
|
part: fingerprintSelect2
|
||||||
|
regex:
|
||||||
|
- "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
|
||||||
|
|
Loading…
Reference in New Issue