Skip to content

Cloudplat 2820/fixing ssrf#62

Merged
jlouk merged 6 commits intomainfrom
CLOUDPLAT-2820/fixing-ssrf
Mar 18, 2026
Merged

Cloudplat 2820/fixing ssrf#62
jlouk merged 6 commits intomainfrom
CLOUDPLAT-2820/fixing-ssrf

Conversation

@jlouk
Copy link
Copy Markdown
Contributor

@jlouk jlouk commented Mar 15, 2026

What Changed?

  • added validation to the pathname to avoid ssrf logs being redirected to an attacker servier
  • for more information here is the hackerone report

@jlouk jlouk requested a review from a team as a code owner March 15, 2026 17:31
index.js Outdated

// SSRF protection: ensure the resolved URL has the same origin as baseurl
if (url.origin !== baseurl.origin) {
console.error('[SECURITY] SSRF attempt blocked - origin mismatch');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the console.error as it produces eslint warnings and could get noisy if there are a lot of SSRF attempts.

Copy link
Copy Markdown
Contributor

@pekkalehtomaki pekkalehtomaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the console.error as it produces eslint warnings and could get noisy if there are a lot of SSRF attempts.

@jlouk jlouk merged commit 7450151 into main Mar 18, 2026
4 checks passed
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.

2 participants