Open fmarier opened 11 months ago
Reference: https://github.com/brave/brave-core/pull/21255#discussion_r1430739970
False positive on this line: https://github.com/brave/security-action/blob/10b0d57eaf6d8739e510c1018fc372f7329e86eb/assets/semgrep_rules/client/chromium-insecure-gurl.yaml#L14
GURL original_url; matches origin whereas for this rule we really meant to match GURL origin;
GURL original_url;
origin
GURL origin;
@fmarier is this still worth implementing?
I think so, GURL original_url is definitely okay and doesn't need to be flagged by the GURL origin rule.
GURL original_url
GURL origin
Reference: https://github.com/brave/brave-core/pull/21255#discussion_r1430739970
False positive on this line: https://github.com/brave/security-action/blob/10b0d57eaf6d8739e510c1018fc372f7329e86eb/assets/semgrep_rules/client/chromium-insecure-gurl.yaml#L14
GURL original_url;
matchesorigin
whereas for this rule we really meant to matchGURL origin;
Proposed Solution