openstreetmap / openstreetmap/mod_tile

Segfault on X-forwarded-for

Open
#198 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
318
Forks
199
PR merge metrics
No merged PRs in 30d

Description

When enabling ModTileEnableTileThrottlingXForward 1 or 2, mod_tile segfault.
No problem with ModTileEnableTileThrottlingXForward 0
Exemple with request X-forwarded-for header : 127.0.0.1

Apache error.log

[Fri Nov 08 21:00:57.764068 2019] [core:notice] [pid 6250:tid 139682593230912] AH00052: child pid 6253 exit signal Segmentation fault (11)

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 crash in mod_tile with ModTileEnableTileThrottlingXForward set to 1 or 2 and an X-forwarded-for header such as 127.0.0.1. Trace the Apache request-handling path for this directive and compare it with value 0. Done means the request no longer segfaults and throttling handles the forwarded address correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, cpp
Domain
backend, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.