-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splitting Vulnerability Sections #90
Comments
Hi, To group findings in the HTML template you can use something like that: <section v-for="findingGroup in lodash.groupBy(findings, f => f.appid)">
<h1 class="in-toc numbered">Findings of {{ findingGroup[0].appid }}</h1>
<div v-for="finding in findingGroup">
<h2 class="in-toc numbered">{{ finding.title }}</h2>
...
</div>
</section> |
Thanks for the suggestion. I'll give it a shot. Apologies, wanted to ask for a bit more help as I don't really get the 'language'. If I now have a findingGroup, how can I read the number of Critical, High, Medium, Low, Info from each findingGroup? I'm basically trying to make it render sections per finding group only if the count is >0 too. Tried this but no luck:
Edit: I sorted it! My report looks insane. Now I'm having another issue where I want to calculate the number of appid:
without it printing the text twice lol.. How do I do that? I tried v-show but no luck. Solved it with
but now I'm having trouble with figuring out how to get under each appid: 1 high, 2 medium,and 8 low risk vulnerabilities but for each app id and only print the text once. Sad times :'(
Of course trying to change all of the v-if from finding_stats to my crazy filter, but it's turning out a bit shit. OK I overcame the issue again. |
Turns out it was never overcome. The If I don't use |
The If you want to iterate over a list and generate dynamic slots based on list contents, you can generate dynamic slot names with |
Currently I have sections such as:
However, I want to add 1 more layer such as:
Is there any way to tag individual findings within the findings list with an APPNAME or APPID, then use the HTML template to only print those findings for that web app, or to recurse through a list of APPNAME or APPID tags manually specified?
Let's say I have around 50 web applications, and I want to group it into its own individual section. Each finding for that web app will be tagged somehow with "webappname"?
The text was updated successfully, but these errors were encountered: