Skip to content

Restrict vulnerability pages for Reporter and below

HackerOne report #1047140 by vaib25vicky on 2020-11-30, assigned to @ngeorge1:

Report | Attachments | How To Reproduce

Why are we doing this work

The fix for the vulnerability described in https://gitlab.com/gitlab-org/gitlab/-/issues/289996 involved hiding the button in the frontend. More importantly, the backend also needs to deny the requests.

Restriction targets

Relevant links

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

  • backend block Reporter and below from requesting:
    • vulnerabilitiesCountByDay, vulnerabilitySeveritiesCount, vulnerabilityGrades endpoints in the GraphQL API
    • vulnerability_exports endpoints in the REST API
  • Return 403 for Reporter and below:
    • security/vulnerabilities pages
    • security/dashboard pages
    • security/vulnerability_report page

/cc @matt_wilson @lkerr

Edited by Lindsay Kerr