Skip to content

Client-supplied X-Forwarded-For / -Proto / -Port pass through verbatim #41

Closed

Description

@danmoz

Medium severity.

apiGatewayV2Headers only sets these when absent (req_resp.go:220-228), so a direct client can spoof them. requestContext.http.sourceIp is trustworthy (trusted-proxy aware via ClientIPVarKey), but an upstream app reading the headers instead can be misled for audit or rate limiting.

Activity

  1. self-assigned this
    on Sep 5, 2026
  2. danmoz commented on Sep 5, 2026

    @danmoz
    OwnerAuthor

    /oc PR please.

  3. opencode-agent commented on Sep 5, 2026

    @opencode-agent
    Contributor

    Created PR #59

    New%20session%20-%202026-09-05T06%3A13%3A36.786Z
    opencode session  |  github run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions