Fix Example Vulnerable Method for Ruby
These example steps provide a fix for a Reflected Cross-site Scripting (XSS) through Unvalidated Input in Error Messages vulnerable method in rack-ssl, which is included in the example-ruby repository.
To complete this task:
In the Veracode Platform, select Scans & Analysis > Software Composition Analysis.
Click the Agent-Based Scan tab.
Select your workspace.
Click the srcclr/example-ruby project.
Click Reflected Cross-site Scripting (XSS) through Unvalidated Input in Error Messages in the Vulnerabilities table.
The Vulnerable Methods section shows that the
redirect_to_httpsmethod is the vulnerable part of the library.
To address the identified vulnerable method, do one of these tasks:
- Change your code to perform in the same manner without relying on this particular method.
- Follow the provided instructions to update the library to a safe version.