External-catalog proxy lets any signed-in user reach any public host

Open
#265 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
security

Research direction

Start by tracing the proxy route and outbound request guard to see how catalog URLs are currently checked; the issue does not name their files, so locate them from the proxy route. Keep the registered external catalog list server-side and reject targets absent from it. Add tests for registered and unregistered targets, including a deceptive prefix match, and update docs/ISSUES.md.

Written by the indexing model from the issue text.

Description

ready

Left open when login was added to the proxy route (#212).

The proxy checks that the requested address belongs to the catalog being browsed, but both values come from request headers the caller sets, and the comparison is a simple prefix match (https://a.com.evil.com passes against https://a.com). So the check is not a real gate: any signed-in user can use the app to fetch from any public host. Private and internal addresses are still blocked by the outbound request guard.

Fix direction: keep the list of external catalogs on the server and allow the proxy to reach only those, instead of trusting headers.

Done when: the proxy refuses a target that is not a registered catalog, with tests, and docs/ISSUES.md is updated.

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

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 TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.