File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/experimental/frameworks
test/experimental/CWE-347 Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
import go
2
2
3
3
/**
4
- * A abstract class which responsible for parsing a JWT token
4
+ * A abstract class which responsible for parsing a JWT token.
5
5
*/
6
6
abstract class JwtParseBase extends Function {
7
7
/**
@@ -23,7 +23,9 @@ abstract class JwtParseBase extends Function {
23
23
}
24
24
25
25
/**
26
- * A abstract class which responsible for parsing a JWT token which the key parameter is a function type
26
+ * A abstract class which responsible for parsing a JWT token which the key parameter is a function type.
27
+ *
28
+ * Extends this class for Jwt parsing methods that accepts a function type as key.
27
29
*/
28
30
abstract class JwtParseWithKeyFunction extends JwtParseBase {
29
31
/**
@@ -38,7 +40,9 @@ abstract class JwtParseWithKeyFunction extends JwtParseBase {
38
40
}
39
41
40
42
/**
41
- * A abstract class which responsible for parsing a JWT token which the key parameter can be a string or byte type
43
+ * A abstract class which responsible for parsing a JWT token which the key parameter can be a string or byte type.
44
+ *
45
+ * Extends this class for Jwt parsing methods that accepts a non-function type as key.
42
46
*/
43
47
abstract class JwtParse extends JwtParseBase {
44
48
/**
@@ -54,6 +58,8 @@ abstract class JwtParse extends JwtParseBase {
54
58
55
59
/**
56
60
* A abstract class which responsible for parsing a JWT without verifying it
61
+ *
62
+ * Extends this class for Jwt parsing methods that don't verify JWT signature
57
63
*/
58
64
abstract class JwtUnverifiedParse extends JwtParseBase { }
59
65
Original file line number Diff line number Diff line change 4
4
| go-jose.v3.go:25:16:25:47 | call to Get | go-jose.v3.go:26:15:26:25 | signedToken |
5
5
| go-jose.v3.go:26:15:26:25 | signedToken | go-jose.v3.go:29:19:29:29 | definition of signedToken |
6
6
| go-jose.v3.go:29:19:29:29 | definition of signedToken | go-jose.v3.go:31:37:31:47 | signedToken |
7
- | go-jose.v3.go:31:21 :31:48 | call to ParseSigned | go-jose.v3.go:33:12:33:23 | DecodedToken |
8
- | go-jose.v3.go:31:37:31:47 | signedToken | go-jose.v3.go:31:21 :31:48 | call to ParseSigned |
7
+ | go-jose.v3.go:31:2 :31:48 | ... := ...[0] | go-jose.v3.go:33:12:33:23 | DecodedToken |
8
+ | go-jose.v3.go:31:37:31:47 | signedToken | go-jose.v3.go:31:2 :31:48 | ... := ...[0] |
9
9
| golang-jwt-v5.go:28:16:28:20 | selection of URL | golang-jwt-v5.go:28:16:28:28 | call to Query |
10
10
| golang-jwt-v5.go:28:16:28:28 | call to Query | golang-jwt-v5.go:28:16:28:47 | call to Get |
11
11
| golang-jwt-v5.go:28:16:28:47 | call to Get | golang-jwt-v5.go:29:25:29:35 | signedToken |
17
17
| go-jose.v3.go:25:16:25:47 | call to Get | semmle.label | call to Get |
18
18
| go-jose.v3.go:26:15:26:25 | signedToken | semmle.label | signedToken |
19
19
| go-jose.v3.go:29:19:29:29 | definition of signedToken | semmle.label | definition of signedToken |
20
- | go-jose.v3.go:31:21 :31:48 | call to ParseSigned | semmle.label | call to ParseSigned |
20
+ | go-jose.v3.go:31:2 :31:48 | ... := ...[0] | semmle.label | ... := ...[0] |
21
21
| go-jose.v3.go:31:37:31:47 | signedToken | semmle.label | signedToken |
22
22
| go-jose.v3.go:33:12:33:23 | DecodedToken | semmle.label | DecodedToken |
23
23
| golang-jwt-v5.go:28:16:28:20 | selection of URL | semmle.label | selection of URL |
You can’t perform that action at this time.
0 commit comments