File tree Expand file tree Collapse file tree 11 files changed +18
-14
lines changed
csharp/ql/test/experimental/Security Features/CWE-1004
CookieHttpOnlyFalseSystemWeb
CookieWithoutHttpOnlySystemWeb Expand file tree Collapse file tree 11 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 1- | Program.cs:25 :27:25 :31 | false | Cookie attribute 'HttpOnly' is not set to true. |
2- | Program.cs:30 :74:30 :78 | false | Cookie attribute 'HttpOnly' is not set to true. |
3- | Program.cs:50 :27:50 :27 | access to local variable v | Cookie attribute 'HttpOnly' is not set to true. |
4- | Program.cs:56 :74:56 :74 | access to local variable v | Cookie attribute 'HttpOnly' is not set to true. |
1+ | Program.cs:23 :27:23 :31 | false | Cookie attribute 'HttpOnly' is not set to true. |
2+ | Program.cs:28 :74:28 :78 | false | Cookie attribute 'HttpOnly' is not set to true. |
3+ | Program.cs:48 :27:48 :27 | access to local variable v | Cookie attribute 'HttpOnly' is not set to true. |
4+ | Program.cs:54 :74:54 :74 | access to local variable v | Cookie attribute 'HttpOnly' is not set to true. |
Original file line number Diff line number Diff line change 1- // semmle-extractor-options: ${testdir}/../../../../resources/stubs/System.Web.cs /r:System.Collections.Specialized.dll
2-
31class Program
42{
53 void CookieDirectTrue ( )
Original file line number Diff line number Diff line change 1+ semmle-extractor-options: /nostdlib /noconfig
2+ semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
3+ semmle-extractor-options: ${testdir}/../../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change 1- | Program.cs:7 :22:7 :59 | object creation of type HttpCookie | Cookie attribute 'HttpOnly' is not set to true. |
1+ | Program.cs:5 :22:5 :59 | object creation of type HttpCookie | Cookie attribute 'HttpOnly' is not set to true. |
Original file line number Diff line number Diff line change 1- // semmle-extractor-options: ${testdir}/../../../../../resources/stubs/System.Web.cs /r:System.Collections.Specialized.dll
2-
31class Program
42{
53 void CookieDefault ( )
Original file line number Diff line number Diff line change 1+ semmle-extractor-options: /nostdlib /noconfig
2+ semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
3+ semmle-extractor-options: ${testdir}/../../../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change 1- | Program.cs:7 :22:7 :59 | object creation of type HttpCookie | Cookie attribute 'HttpOnly' is not set to true. |
1+ | Program.cs:5 :22:5 :59 | object creation of type HttpCookie | Cookie attribute 'HttpOnly' is not set to true. |
Original file line number Diff line number Diff line change 1- // semmle-extractor-options: ${testdir}/../../../../../resources/stubs/System.Web.cs /r:System.Collections.Specialized.dll
2-
31class Program
42{
53 void CookieDefault ( )
Original file line number Diff line number Diff line change 1+ semmle-extractor-options: /nostdlib /noconfig
2+ semmle-extractor-options: --load-sources-from-project:${testdir}/../../../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj
3+ semmle-extractor-options: ${testdir}/../../../../../resources/stubs/System.Web.cs
Original file line number Diff line number Diff line change 1- // semmle-extractor-options: ${testdir}/../../../../../resources/stubs/System.Web.cs /r:System.Collections.Specialized.dll
2-
31class Program
42{
53 void CookieDefault ( )
You can’t perform that action at this time.
0 commit comments