Applications that use cryptographically signed information for multiple purposes have the risk that one piece of signed information can be exchanged with another. When you use JWTs as session tokens, and you use JWTs as password reset tokens, the password reset tokens should not be valid as session tokens. So a piece of signed information should be valid for only a specific purpose.
I am looking how to describe this more succintly, to include this in the ASVS. What is the name of this attack?
I found one example: Missing Required Cryptographic Step Leading to Sensitive Information Disclosure in TYPO3 CMS · CVE-2020-15098 · GitHub Advisory Database. Are there any more example?
The purpose of the signed data can be set using the "additional data" in AEAD ciphers, and partially in the audience field in a JWT. Is there a better name for such a field?