Skip to content

Commit

Permalink
fix(prudp): Check for matching user PID and ticket source PID
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra committed Feb 13, 2025
1 parent 6ec5005 commit f34f86f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prudp_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ func (pep *PRUDPEndPoint) readKerberosTicket(payload []byte) ([]byte, types.PID,
return nil, 0, 0, err
}

if userPID != ticket.SourcePID {
return nil, 0, 0, errors.New("User PID and ticket source PID mismatch")
}

_, err = checkDataStream.ReadUInt32LE() // * CID of secure server station url
if err != nil {
return nil, 0, 0, err
Expand Down

0 comments on commit f34f86f

Please sign in to comment.