2023-03-09 12:27:18 +00:00
id : js-analyse
2023-03-13 18:58:46 +00:00
2023-03-09 12:27:18 +00:00
info :
2023-03-13 18:58:46 +00:00
name : JS Analyse
2023-03-09 12:27:18 +00:00
author : ayadim
2023-03-10 12:22:06 +00:00
severity : info
description : |
This process involves extracting tokens, endpoints, URIs, and variable names from the JS file and analyzing them for any potential weaknesses that could be exploited. By extracting and analyzing these elements, potential security threats can be identified, allowing for proactive measures to be taken to mitigate any risks associated with the application. This process can be used as part of a comprehensive bug-hunting strategy to ensure the security of an application.
2023-03-13 18:58:46 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-03-13 18:58:46 +00:00
tags : file,js-analyse,js,javascript
2023-03-09 12:27:18 +00:00
file :
- extensions :
- js
2023-03-13 18:58:46 +00:00
2023-03-09 12:27:18 +00:00
extractors :
- type : regex
2023-03-13 18:58:46 +00:00
name : extracted-token
2023-03-09 12:27:18 +00:00
regex :
2023-03-10 11:14:42 +00:00
- "(?i)(([a-z0-9]+)[-|_])?(key|password|passwd|pass|pwd|private|credential|auth|cred|creds|secret|access|token)([-|_][a-z]+)?(\\s)*(:|=)+"
2023-03-13 18:58:46 +00:00
2023-03-09 12:27:18 +00:00
- type : regex
2023-03-13 18:58:46 +00:00
name : extracted-endpoints
2023-03-09 12:27:18 +00:00
regex :
- "(?i)('|\")((\\.{0,2})|([a-z0-9-_]*))/([a-z0-9-_/=:&?\\.]+)('|\")"
- "(?i)}\\s*/[a-z0-9-_?=&/]+"
- "(?i)path\\s*(:|=)\\s*('|\")[a-z0-9-_?=&:\\./]+('|\")"
2023-03-13 18:58:46 +00:00
2023-03-09 12:27:18 +00:00
- type : regex
2023-03-13 18:58:46 +00:00
name : extracted-uri
2023-03-09 12:27:18 +00:00
regex :
- "(?i)([a-z]{0,10}):(//|/)[a-z0-9\\./?&-_=:]+"
2023-10-20 11:41:13 +00:00
# digest: 490a004630440220295fa966d911a692e343adc830f080654abda1d1b1f3e59a421a54a5e9d29fe802203b8bf407243a4e13d0567bf99a9c6b4f6bcb863600c1a6a54c53cc67bec50f51:922c64590222798bb761d5b6d8e72950