caldera
caldera copied to clipboard
Pathfinder Plugin not rendering correctly within Caldera
Hi, should mention I am new here.
Pathfinder Plugin not rendering correctly within Caldera
Steps to reproduce the behavior:
- Select Pathfinder from Plugin
- Select nmap from drop-down
- An alter pops us stating 'Error Setting up the Scanner'
Screenshots

Windows 10 with Chrome
Additional context
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 when invoked by Pathfinder plugin
I also raised https://github.com/center-for-threat-informed-defense/caldera_pathfinder/issues/56 as not sure where the issue is
Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/
This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 5 days
@scoobyduo I believe this is due to the pathfinder plugin not being updated along side core UI changes.
@argaudreau is that correct?
@elegantmoose Correct, we have not updated the Pathfinder plugin to UI v4 which can cause some instability. Let's discuss if it's within scope for us to update it, or just have it updated for v5.
The pathfinder plugin is being updated to work with the new UI version, stay tuned in the next week or so for a fix for this.
Thanks for being patient -- Pathfinder's UI has been updated to work with v4. Please try a fresh pull of master in Pathfinder and let me know if you run into any issues.
Not OP. Thanks for the quick update!
After updating, I encountered another (small) bug using the "nmap" scanner with script "nmap-vulners".
When running a scan with the Pathfinder plugin for the first time, the "pingless" field in the config is empty. This results in the following error:
Scan ID: b853c028-db15-4c77-878d-b1b21d2105b4 failed. Error output: exception encountered when scanning, ValueError("invalid literal for int() with base 10: ''").
After checking the box "No Ping (-Pn)" the scan is successful (pingless: true). Un-checking the box results in another successful execution (pingless: false).
Same behavior for Firefox and Chrome.
Another note: At least for me the graph interface is not really useable since I cannot scroll or "move" through it using my mouse. Thus, I can only see around 10% of the graph. Also trying different values for the link distance does not help.
Did you leave the port fields blank by chance? You'll get a similar error if all the fields aren't filled out, but we should make those errors a bit more clear.
I tested with empty port field and with filled-in port values. The error stays the same whether I enter a port value or not.
@L015H4CK Still having trouble?
I opened a new issue for the above problem - https://github.com/center-for-threat-informed-defense/caldera_pathfinder/issues/60.
It was fixed in https://github.com/center-for-threat-informed-defense/caldera_pathfinder/commit/ed4ed7db8e12342763c811492999d0048dffa08f.
So far, everything seems to work great. Thanks for reaching out!