caldera icon indicating copy to clipboard operation
caldera copied to clipboard

Pathfinder Plugin not rendering correctly within Caldera

Open scoobyduo opened this issue 3 years ago • 3 comments

Hi, should mention I am new here.

Pathfinder Plugin not rendering correctly within Caldera

Steps to reproduce the behavior:

  1. Select Pathfinder from Plugin
  2. Select nmap from drop-down
  3. An alter pops us stating 'Error Setting up the Scanner'

Screenshots Caldera_Pathfinder_Error_Setting_Up_Scanner

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

scoobyduo avatar Aug 26 '22 10:08 scoobyduo

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/

github-actions[bot] avatar Aug 26 '22 10:08 github-actions[bot]

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

github-actions[bot] avatar Sep 16 '22 00:09 github-actions[bot]

@scoobyduo I believe this is due to the pathfinder plugin not being updated along side core UI changes.

@argaudreau is that correct?

mkultraWasHere avatar Sep 17 '22 15:09 mkultraWasHere

@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.

argaudreau avatar Oct 12 '22 13:10 argaudreau

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.

argaudreau avatar Oct 24 '22 20:10 argaudreau

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.

argaudreau avatar Nov 07 '22 14:11 argaudreau

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.

L015H4CK avatar Nov 08 '22 07:11 L015H4CK

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.

argaudreau avatar Nov 08 '22 13:11 argaudreau

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 avatar Nov 08 '22 13:11 L015H4CK

@L015H4CK Still having trouble?

mkultraWasHere avatar Nov 21 '22 16:11 mkultraWasHere

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!

L015H4CK avatar Nov 21 '22 17:11 L015H4CK