Skip to content

Guard DRep metadata URL fetches against SSRF#16

Open
Dreamstore2046 wants to merge 1 commit into
IntersectMBO:mainfrom
Dreamstore2046:codex/drep-ssrf-metadata-guard
Open

Guard DRep metadata URL fetches against SSRF#16
Dreamstore2046 wants to merge 1 commit into
IntersectMBO:mainfrom
Dreamstore2046:codex/drep-ssrf-metadata-guard

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

  • validate DRep metadata URLs before the backend fetches them server-side
  • reject unsupported protocols, private/reserved IPv4 ranges, loopback/link-local/unique-local IPv6 ranges, and hostnames that resolve to blocked addresses
  • disable redirects for DRep metadata fetches so an allowed URL cannot redirect into an internal service
  • return URL_NOT_FOUND when metadata validation rejects an unsafe URL
  • add Jest coverage for protocol rejection, private literal IPs, private DNS results, IPv6 blocking, and redirect configuration

Fixes #15

Validation

  • corepack yarn test --runInBand
  • corepack yarn build

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty] - Unauthenticated full-read SSRF in the DRep Campaign Platform API (metadataUrl fetched server-side)

1 participant