matomo-org / matomo-org/docker

External service interaction

Open
#303 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
1k
Forks
384
PR merge metrics
No merged PRs in 30d

Description

In the Docker container https://hub.docker.com/_/matomo in version 4.13.1:
The application accepts arbitrary dns names in the host directive an resolves these names.

Host: lodeziruxzjnxqe21f317p0x5obhz8n1mpcc20r.oastify.com

## Expected Behavior

Do not resolve an unexpected DNS name.

## Current Behavior

Arbitrary DNS names are resolved

## Possible Solution

Prevent resolving unexpected DNS names.
## Steps to Reproduce (for Bugs)

1.Send an HTTP-Request to Matomo containing an arbitrary hostname:
lodeziruxzjnxqe21f317p0x5obhz8n1mpcc20r.oastify.com

## Context

This is an indicator of missing anitization checks.

## Your Environment

Docker container from https://hub.docker.com/_/matomo in version 4.13.1:
* Matomo Version: 4.13.1
* PHP Version: from Docker container
* Server Operating System: Linux
* Additionally installed plugins:

* Browser:
* Operating System:

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the HTTP request against the Matomo 4.13.1 Docker container described in the issue and trace where the supplied host is resolved. The work is complete when arbitrary unexpected DNS names are no longer resolved, with the behavior verified using the reported request.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, php
Domain
devops, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.