ThreatMapper
ThreatMapper copied to clipboard
PDF report always shows "No vulnerabilities found for the applied filters"
Thanks for providing this tool!
Describe the bug When trying to generate a PDF report with vulnerabilities a PDF with the text "No vulnerabilities found for the applied filters" is always generated. Switching to the XLSX format returns thousands.
To Reproduce Steps to reproduce the behavior:
- Go to 'Integrations > Reports / PDF/XLSX'
- Select 'Vulnerabilities', 'container image', 'last 1 day' and PDF format.
- Click Download.
- Wait until report is generated and download it (a file without vulnerabilities is generated).
- Switch to XLSX download type and click Download.
- A XLSX file with thousand of vulnerabilities is shown.
Expected behavior I expected that the only difference would be the file format. The list of vulnerabilities should be the same.
Screenshots
Filter settings and "Filters used" - Note the differences here.
Extract from XLSX:
PDF file downloaded:
Components/Services affected
Making a best effort guess here.
- [X] UI/Frontend
- [X] API/Backend
- [ ] Agent
- [ ] Deployment/YAMLs
- [ ] CI/CD Integration
- [ ] Other (specify)
I hope the above helps with tracking down the issue. Since the Filters Used are different depending on file format, I suspect the issue might lay there.
Thanks
Hi @mustajarvi , can you please post the diagnosis logs ? If you have scanned the image from the agent in this case please post the logs of the agents as well
Diagnosis logs can be found at Settings -> Diagnosis
Sure. Attaching the diagnosis logs. Note that the logs are from today, while the screenshots above are from a week ago.
(Had to rename the file ending from .tgz to .tar.gz )
The scan was done by the deepfence package scanner.
@mukuldeepfence did find any issues here ?
Just confirmed with @mukuldeepfence , the issue was with XLSX reporting. The pdf report for the applied filter was correct. This issue has been resolved in master
and will be available on next releases or patch.
Hello @mustajarvi - There was an issue with applying filters, which has been fixed in the recently released 1.4.1 version of Threatmapper. Request you to please check if you still see the issue. Thank you
Hello @shyam-dev - I am able to download the report I needed now. Thank you!