DA proxy allows pipedream.net as target host

Open
#1,931 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
terraform
Domain
security

Research direction

Start with infra/altinn-digdir-oed-rg/function-feedpoller.tf in dd-infrastructure and inspect the prod and tt02 proxy host settings named in the issue. Check how the regex is used by DaEventFeedProxyService.ProxyRequest in oed-feedpoller to confirm the intended host matches. Done means pipedream.net is removed from both allowlists and their regexes are anchored and escaped.

Written by the indexing model from the issue text.

Description

The DA proxy (DaProxy function in oed-feedpoller-func) allows pipedream.net as a target host in prod. Found on the default branch of Altinn/oed-feedpoller and Altinn/dd-infrastructure on 2026-11-19. Related: #1872 (token logging in the same proxy).

infra/altinn-digdir-oed-rg/function-feedpoller.tf in dd-infrastructure (and tt02):

"DaSettings:ProxyHostEndpointMatch"    = "domstol.no$|brreg.no$|pipedream.net$"
"OedSettings:DaProxyHostEndpointMatch" = "domstol.no$|brreg.no$|pipedream.net$|${var.cluster_fqdn}$"

The proxy (DaEventFeedProxyService.ProxyRequest in oed-feedpoller) takes the target host from the first path segment, checks it against DaProxyHostEndpointMatch, and sends a GET with a Maskinporten token attached. pipedream.net is a public request-inspection service, so a caller with the function key could probably make the proxy send a domstol token to an endpoint they control (not tested). The regex is also unanchored at the start and the dots are unescaped, so look-alike hosts may match.

Fix: remove pipedream.net (and brreg.no if unused) from both settings in prod and tt02, anchor and escape the patterns (^(.+\.)?domstol\.no$), and consider only attaching the token for the DA host.

Done when

  • pipedream.net removed from the allowlists in prod and tt02 Terraform
  • Allowlist regexes anchored and escaped
Dominant language
No language data
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from Altinn/oed

All issues in Altinn/oed

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.