[Shieldy] Fix: Unvalidated user input injected directly into external API URLs#2
Open
shieldy-security[bot] wants to merge 1 commit into
Open
[Shieldy] Fix: Unvalidated user input injected directly into external API URLs#2shieldy-security[bot] wants to merge 1 commit into
shieldy-security[bot] wants to merge 1 commit into
Conversation
Security fix applied by Shieldy. Finding: VULN-001 Severity: high
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Fix
Vulnerability: Unvalidated user input injected directly into external API URLs
Severity: HIGH
Category: ssrf
File:
cli/src/stockData.ts:28What was found
Ticker symbols entered by the user are inserted directly into Yahoo Finance API URLs without any sanitization or validation. For example, a user could enter a ticker like AAPL&symbols=evil.com or use URL-encoded characters to manipulate the request. While this is a CLI tool and the attacker would need local access, the constructed URL could be redirected to unintended hosts or manipulate query parameters to exfiltrate data or bypass intended API behavior. If this code were ever adapted for a ser
What was changed
Before:
After:
This fix was automatically generated by Shieldy security scanner.