• SamHouston (Veracode)

    Hi @CPatra119843 (Community Member)​ - Our documentation page may be helpful here: https://docs.veracode.com/r/Configure_authentication_methods_for_web_application_scans

     

    To troubleshoot the authentication failure with your multi-step login script, follow these steps:

     

    Review CSP Settings: Check your application's Content Security Policy to ensure it allows the execution of scripts that your Selenium script relies on.

     

    Adjust the Selenium Script: Make sure your Selenium script accurately records the entire login process, including all necessary steps and verification commands.

     

    Test the Script Locally: Run the Selenium script in a local environment to see if it executes without issues. This can help identify if the problem is specific to the Veracode environment.

     

    Upload the Correct Script: Ensure that you are uploading the correct .side file format of your Selenium script in the Authentication tab of your web application configuration in Veracode.

     

    Check for Errors: If the issue persists, check for any error messages in the Selenium logs that could provide additional context on what might be going wrong.

     

    Contact Veracode Support: If you continue to experience issues, consider reaching out to Veracode Technical Support for further assistance with your specific case: https://community.veracode.com/s/contact-support

    Expand Post
  • SamHouston (Veracode)

    Hi @CPatra119843 (Community Member)​ - I received an additional suggestion from a colleague:

     

    Turns out that Selenium IDE uses eval injection and if the site has a Content Security Policy (which is a best practise that we recommend), then that's not going to fly.

     

    So, I suggest using the new (beta) standalone Selenium IDE, which is available for Ubuntu as an AppImage: Selenium-IDE-4.0.1-beta.14.AppImage (though they may need to install Fuse: https://github.com/appimage/appimagekit/wiki/fuse ).

     

    I tested this and the standalone browser appears to disable CSP or at least it doesn't report the above error.

    Expand Post

Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.