Skip to content

Commit

Permalink
refine cookie storage rule (#369)
Browse files Browse the repository at this point in the history
* refine cookie storage rule

* refine cookie storage rule

---------

Co-authored-by: Hitesh Mahajan <hitesh.mahajan@privado.ai>
  • Loading branch information
HiteshMah-Jan and Hitesh-privado authored Dec 7, 2023
1 parent 7260d35 commit f8d4b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/sinks/storages/cookiemanager/javascript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sinks:
- id: Storages.Web.Cookie.Write
name: Web Storage Cookie(Write)
patterns:
- "(?i)(.*cookie.*set.*)|(.*setCookie)"
- "(?i)(.*cookie[^{}()]*set.*)|(.*:setcookie)"
tags:

- id: Storages.Web.Cookie.Delete
Expand Down Expand Up @@ -48,4 +48,4 @@ sinks:
name: Web SessionStorage(Read)
patterns:
- "(?i)(\\bstorage\\b|sessionstorage)(.*)(getItem)"
tags:
tags:

0 comments on commit f8d4b82

Please sign in to comment.