Skip to content

Commit

Permalink
sanitize site as well, just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Jun 3, 2022
1 parent 13685c8 commit 435445a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (e VerifyHandler) sendConfirmation(w http.ResponseWriter, r *http.Request)
},
SessionOnly: r.URL.Query().Get("session") != "" && r.URL.Query().Get("session") != "0",
StandardClaims: jwt.StandardClaims{
Audience: r.URL.Query().Get("site"),
Audience: e.sanitize(r.URL.Query().Get("site")),
ExpiresAt: time.Now().Add(30 * time.Minute).Unix(),
NotBefore: time.Now().Add(-1 * time.Minute).Unix(),
Issuer: e.Issuer,
Expand Down

0 comments on commit 435445a

Please sign in to comment.