
CPatra119843 (Community Member) asked a question.

CPatra119843 (Community Member) asked a question.
Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
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
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.