Icinga / Icinga/icinga2

Reject API requests with header Sec-Fetch-Site: cross-site

Open
#10,431 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/api good first issue
Dominant language
C++
Stars
2.2k
Forks
616
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Is your feature request related to a problem? Please describe.

Our API doesn't protect GETs against CSRF to make it working in a browser.

Describe the solution you'd like

Modern browsers even indicate CSRFs, setting Sec-Fetch-Site to cross-site. Simply listen to the browser!

Describe alternatives you've considered

Do nothing.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked MDN Sec-Fetch-Site reference and Go issue first, then trace the REST API request handling in Icinga2; the issue names no source file or test. Done means cross-site requests carrying Sec-Fetch-Site: cross-site are rejected without breaking the browser-compatible API behavior described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, backend, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.