
SBrooke771549 (Community Member) asked a question.
I'm using VeraCode UploadAndScan to perform a SAST and SCA scan. I upload a zip file containing multiple Java WAR application files. The scan results in this scenario are different than if I perform separate scans each uploading a zip file containing only a single WAR file. For example, when all WAR files were scanned together there were no "High" severity SAST vulnerabilities reported, however, when I scanned one of the WARS separately using the same mechanism the scan result contained "High" vulnerabilities. These scans were performed on the same day against the same Veracode scan engine. Because I cannot trust the scan result when using multiple WAR files in the same zip file this problem forces me to spend a lot of extra time running one scan per WAR file in order to get reliable scan results.
.png)
Hello @SBrooke771549 (Community Member) ,
As our Compilation and Packaging Guide states, you can upload archives of multiple application files in these formats: ZIP, TAR, TAR.GZ, TGZ (https://help.veracode.com/r/compilation_packaging). Also, to make sure that you can have a WAR in a ZIP but NOT a WAR in a JAR.
With the two scans that you used multiple WAR files and received no High severity and then scanning just one WAR file and then containing High vulnerabilities, we would need to know the name of the scan, date, etc. in order to diagnose it better.
Jason
Community Support Engineer
Hi Jason,
Thanks for your quick response. In my scenario we are putting WAR(s) in a ZIP file. There are no WAR files inside of JAR files. I do have both scan results, one which uploaded multiple WARS in a ZIP file and one which uploaded a single WAR inside a ZIP file. However, in the process of putting this together for you I noticed that in the PDF report for the scan of multiple WARS, two of the WAR files were not present in the list of modules in the section titled “Scope of Static Scan”. These were the WARS that were found later to have “High” vulnerabilities. It turns out that the ZIP file contained corrupted versions of these 2 missing WAR files (each file was only 4 bytes) and therefore Veracode did not find anything in them. After I re-ran the Veracode scan ensuring that the correct versions of the two WAR files were present and the new scan result shows the “High” vulnerabilities as expected.
Therefore, I do not think there is any issue. The problem was that the original ZIP file did not contain all the WAR files that I thought it contained. Garbage in garbage out I guess.
Thanks,
--Steve