
RBlackburn522523 (Community Member) asked a question.

RBlackburn522523 (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 @RBlackburn522523 (Community Member),
Veracode Static Analysis detects CWE-80 flaws using data-flow analysis. To achieve this, a model of your application code is generated, which describes the possible data flows. A CWE-80 flaw will be suppressed when every flow into the attack vector is detected to pass through a cleanser function.
When using a wrapper function, the complexity of the model increases and there are likely to be flows that do not include the cleanser function. These may not be obvious from reading the source code -- such as when exceptions are involved.
To have Veracode Static Analysis recognise the use of the supported cleanser function, I recommend using it as close to the attack vector statement as possible. For example, if the attack vector is Response.Write:
Response.Write(HtmlEncode(taintedValue));
Kind regards,
Duncan
Can you help me to understand what kind of test I can run locally to know why it is failing your data-flow analysis?
Hi @RBlackburn522523 (Community Member),
When CWE-80 flaws are reported, the Static Analysis engine traces the flow of untrusted data back to its source to generate Data Paths. These can be inspected in the Triage Flaws page for the scan in the Veracode Platform. You should be able to use these to check that the cleansing functions are effective. It is possible the data path information is incomplete. In which case you will need to use your IDE to check the chain of calling functions.
If you would like to discuss this in detail, please schedule a consultation with one of our Application Security Consultants.
Kind regards,
Duncan