Skip to content

fix: sanitize url validation and enhance api error parsing#111

Open
KGFCH2 wants to merge 1 commit into
Mrinalray:mainfrom
KGFCH2:fix/server-validation-and-error-handling
Open

fix: sanitize url validation and enhance api error parsing#111
KGFCH2 wants to merge 1 commit into
Mrinalray:mainfrom
KGFCH2:fix/server-validation-and-error-handling

Conversation

@KGFCH2
Copy link
Copy Markdown
Contributor

@KGFCH2 KGFCH2 commented May 26, 2026

Related Issue

Closes #110

Summary

Validates request input types, enforces a maximum length limit on URLs to mitigate resource exhaustion vulnerabilities, and improves error parsing.

Changes Made

  • Added string check verification to request bodies
  • Set a 2048-character length limit on scanned URLs

Testing

  • Ran backend test suite verifying validation behaviors.

@PranavAgarkar07
Copy link
Copy Markdown

Hey! I'd love to work on this. I have experience with full-stack development and this seems like a great issue to start contributing. Could you assign me to this?

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.

API validation fallback and robust error parsing in callSafeBrowsingWithRetry

2 participants