mirror of
https://github.com/github/codeql.git
synced 2026-02-17 07:23:42 +01:00
18 lines
339 B
JavaScript
18 lines
339 B
JavaScript
const express = require('express')
|
|
const jwt_decode = require('jwt-decode');
|
|
|
|
function getSecret() {
|
|
return "A Safe generated random key"
|
|
}
|
|
|
|
function aJWT() {
|
|
return "A JWT provided by user"
|
|
}
|
|
|
|
(function () {
|
|
const UserToken = aJwt()
|
|
|
|
// jwt-decode
|
|
// no signature verification
|
|
jwt_decode(UserToken) // NOT OK
|
|
})(); |