center-for-threat-informed-defense / caldera_pathfinder

Pathfinder is a plugin for mapping network vulnerabilities, scanned by CALDERA or imported by a supported network scanner, and translating those scans into adversaries for network traversal.
https://caldera.mitre.org/
Apache License 2.0
123 stars 26 forks source link

error when rendering after selecting nmap from Pathfinder drop-down #56

Closed scoobyduo closed 2 years ago

scoobyduo commented 2 years ago

Selecting the 'nmap' scanner from the Caldera GUI with Pathfinder plugin installed results in a Javascript Reference Error

pathfinder.js:222 ReferenceError: validateFormState is not defined
 at pathfinder.js:207:9
(anonymous) @ pathfinder.js:222
function setupScannerSection(){
.....
.....
        validateFormState(response.enabled, '#startScan')

Would appear the validateFormState function is not defined

*Note : Just cloned the code direct into Caldera plugin - no docker etc

mehaase commented 2 years ago

This should be fixed in #58 -- please let us know if you're still having an issue with this. I'll make a tag and release containing this fix shortly.