Skip to content
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

Custom ordering of findings #69

Closed
MWedl opened this issue Aug 11, 2023 Discussed in #13 · 5 comments
Closed

Custom ordering of findings #69

MWedl opened this issue Aug 11, 2023 Discussed in #13 · 5 comments

Comments

@MWedl
Copy link
Contributor

MWedl commented Aug 11, 2023

Discussed in #13

Originally posted by aronmolnar May 10, 2023

Problem

Currently, the CVSS vector is a mandatory field for findings. Findings are ordered by CVSS score during reporting (and in the findings array in the HTML report).

Solution

It should be possible to customize the ordering and get rid of the mandatory CVSS score. It should be possible to sort by multiple custom-defined fields (e.g. first per target, second by severity).

It might also be desirable to allow custom ordering by drag&drop in the findings section.

Drawback

None

@MWedl
Copy link
Contributor Author

MWedl commented Aug 11, 2023

We are starting to implement this feature.

Users will be able to configure the finding ordering in the design. The design holds a list of fields to sort by and their sort direction. The data structure for the finding ordering config will be something like:

[{"field": "cvss", "order": "desc"}, {"field": "title", "order": "asc"}]
[{"field": "target", "order": "asc"}, {"field": "cvss", "order": "desc"}, {"field": "created", "order": "asc"}]

In pentest projects the findings use the ordering config from the design by default. It will be possible to override the finding order. I.e. not use the ordering config from the design and manually move findings up and down in the finding list via drag and drop.

@MWedl
Copy link
Contributor Author

MWedl commented Aug 24, 2023

@MWedl MWedl closed this as completed Aug 24, 2023
@Lednerb
Copy link

Lednerb commented Aug 25, 2023

Thanks fore adding this feature!

However, the custom sorting should also be used for the editing part on the left side (where all the findings are added to).


And also additionally, when the CVSS field is removed maybe an color-option for the risk indicator would be nice to have.

Background information:
In our pentests we apply the risk manually to each finding with a enum field risk_category with the values ciritcal, high, medium, low, observation and recommendation.

So a mapping with colors instead of the automatically applied from the cvss field would be a nice to have addition.

@MWedl
Copy link
Contributor Author

MWedl commented Aug 25, 2023

The custom sorting should already be used by the finding sidebar in projects. For existing projects, please note that you need to refresh the design for these projects to apply any design changes including the configured finding order. See also this answer #64 (comment)

The SysReptor frontend sets the sidebar colors based on the cvss field or the newly added predefined field severity. The severity field is an enum of severity levels (critical, high, medium, low, info; same as CVSS levels). I think you cannot use this field because you use 6 levels instead of 5.

Adding a configuration option for mapping custom risk levels to sidebar colors would be quite a niche configuration, which I think will not be used by many users. Since the benefit is quite small (just a colored findings sidebar) compared to the implementation complexity, we will not implement this for now.

@Lednerb
Copy link

Lednerb commented Aug 30, 2023

Thanks for the answer!

The sorting works already, I indeed had not updated the design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants