GeezerVison is showing github.com — Java: queries about user-controlled URLs should be sanitized by enforcing a prefix · Issue #4530 · github/codeql
Java: queries about user-controlled URLs should be sanitized by enforcing a prefix #4530DescriptionThis comes from a discussion with @smowton over here.
Certain categories such as Open Redirect, SSRF and Android WebView URL injection will benefit from a sanitizer which would clean the taint in case the dataflow goes through a string prefix operation (concatenation, format strings, string buffers, string writer ...). Since not controlling the begging of the URL will severely decrease the exploitability of these issues. Reacted by love ny and Jorge Activitychanged the title [-]General issue[/-] [+]Java: queries about user-controlled URLs should be sanitized by enforcing a prefix[/+] on Oct 21, 2020smowton commented on Oct 21, 2020 Added a descriptive title smowton commented on Oct 21, 2020 github-actions commented on Apr 16, 2021 This issue is stale because it has been open 14 days with no activity. Comment or remove the stale label in order to avoid having this issue closed in 7 days. neverlovelynn commented on Apr 16, 2021 I encountered the same problem when using codeql. Is this problem solved now? smowton commented on Apr 16, 2021 Hah, I'd forgotten about this. I ported this from Go when promoting the Java SSRF query from experimental (#5587). That should be generalised to other queries concerned with a user-controlled URL. ZH3FENG commented on May 20, 2021 Same as javascript, so many false-positive reports, particularly SSRF.
Is there any filter in js? pwntester commented on Feb 23, 2022 ContributorAuthor More actions Another category that would benefit from this is JNDI injections where attackers need to control the beginning of the url /cc @atorralba
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|