• Hi @RJangid120142 (Community Member)​ ,

     

    Veracode Static Analysis reports a flaw of the category CWE 80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) if it can find a place where you are returning data to the browser and part of that data is coming from outside of the application (from an HTTP Request but also from a file, a database, webservice, etc) and it does not pass through a Supported Cleansing Function ( https://help.veracode.com/r/review_cleansers ).

     

    If data from outside of the application is used in an HTTP Response without proper encoding (with a Supported Cleansing Function) the possibility may exist that an attacker is able to inject their own HTML into your responses and thereby is able to alter your page.

     

    You should review the data sent and it's origin and ensure that all variable data is correctly encoded using one of our Supported Cleansing Functions if the output data is HTML.

     

    You may also be sending this data out in a format that is not HTML, for example JSON. Veracode Static Analysis is not always able to detect this. If this is the case please verify that you have set the correct Content-Type (it should be set to "application/json") and propose a mitigation ( https://help.veracode.com/r/improve_mitigation ) which can then be reviewed by a member of your organisations security team.

     

    Please let me know if you have any remaining questions or concerns.

     

    Thank you,

    Boy Baukema

    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.