Using JWT to establish a trusted context for Row Level Security
1–10 of 15 posts
Re: Using JWT to establish a trusted context for Row Level Security
#2As a suggestion I would look to name the properties of your current token in such a way where they could be compatible with the embedded case.
Re: Using JWT to establish a trusted context for Row Level Security
#3https://github.com/tvondra/jwt_context/blob/10be23c0651f1099...
https://github.com/tvondra/jwt_context/blob/10be23c0651f1099...
Oh look, the typical setup for a classical JWT vulnerability.
Prior art:
https://auth0.com/blog/critical-vulnerabilities-in-json-web-...
https://github.com/firebase/php-jwt/issues/351
You should really consider not using JWT for new designs that don't a priori need to interop with JWT.
PASETO is less likely to create sadness: https://paseto.io
Re: Using JWT to establish a trusted context for Row Level Security
#4https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... Oh look, the typical setup for a classical JWT vulnerability. Prior art: https://auth0.com/blog/critical-vulnerabilities-in-json-web-... https://github.com/firebase/php-jwt/issues/351 You should really consider not using JWT for…
If you're trying to make the argument that because they can be insecure, we should not use JWTs. Thats not really a great argument for most people. JWTs provide a lot of value, and the idea of having some secure, validatable, and no network required check for authentication, or transporting information. Is too valuable for businesses. So we all use JWTs, they are a decent standard.
At the very least you should propose an alternative that people use besides JWTs if you're going to vaugly hand wave about the scary security issues of 2021 firebase, and 2020 Npm packages reported by Auth0.
Re: Using JWT to establish a trusted context for Row Level Security
#5https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... Oh look, the typical setup for a classical JWT vulnerability. Prior art: https://auth0.com/blog/critical-vulnerabilities-in-json-web-... https://github.com/firebase/php-jwt/issues/351 You should really consider not using JWT for…
> You should really consider not using JWT for new designs that don't a priori need to interop with JWT. If you're trying to make the argument that because they can be insecure, we should not use JWTs. Thats not really a great argument for most people. JWTs provide a lot of value, and the idea of having some secure, validatable, and no network required check for authentication, or transporting information. Is too val…
PASETO: https://paseto.io
I thought this was common knowledge on HN?
> if you're going to vaugly hand wave about the scary security issues of 2021 firebase, and 2020 Npm packages reported by Auth0.
These are issues caused by the JWT standard.
https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...
Re: Using JWT to establish a trusted context for Row Level Security
#6https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... Oh look, the typical setup for a classical JWT vulnerability. Prior art: https://auth0.com/blog/critical-vulnerabilities-in-json-web-... https://github.com/firebase/php-jwt/issues/351 You should really consider not using JWT for…
Re: Using JWT to establish a trusted context for Row Level Security
#7https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... https://github.com/tvondra/jwt_context/blob/10be23c0651f1099... Oh look, the typical setup for a classical JWT vulnerability. Prior art: https://auth0.com/blog/critical-vulnerabilities-in-json-web-... https://github.com/firebase/php-jwt/issues/351 You should really consider not using JWT for…
> You should really consider not using JWT for new designs that don't a priori need to interop with JWT. If you're trying to make the argument that because they can be insecure, we should not use JWTs. Thats not really a great argument for most people. JWTs provide a lot of value, and the idea of having some secure, validatable, and no network required check for authentication, or transporting information. Is too val…
Re: Using JWT to establish a trusted context for Row Level Security
#8Earlier quoted context omitted.
> You should really consider not using JWT for new designs that don't a priori need to interop with JWT. If you're trying to make the argument that because they can be insecure, we should not use JWTs. Thats not really a great argument for most people. JWTs provide a lot of value, and the idea of having some secure, validatable, and no network required check for authentication, or transporting information. Is too val…
> At the very least you should propose an alternative that people use besides JWTs PASETO: https://paseto.io I thought this was common knowledge on HN? > if you're going to vaugly hand wave about the scary security issues of 2021 firebase, and 2020 Npm packages reported by Auth0. These are issues caused by the JWT standard . https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...
Just as an aside but I would never say this, this is why people hate security teams. I'm a security 'expert' with 15+ years in the industry including speaking at DEFCON, Blackhat, and all that.
I had no idea about these issues and have never heard of PASETO until now! I'm actually a few months in into my startup and we are using JWT for a lot of stuff so this is very relevant. Thanks for sharing! But if I can't keep up with everything then devs who don't do this all day simply cannot.
Re: Using JWT to establish a trusted context for Row Level Security
#9Earlier quoted context omitted.
> At the very least you should propose an alternative that people use besides JWTs PASETO: https://paseto.io I thought this was common knowledge on HN? > if you're going to vaugly hand wave about the scary security issues of 2021 firebase, and 2020 Npm packages reported by Auth0. These are issues caused by the JWT standard . https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-ba...
> I thought this was common knowledge on HN? Just as an aside but I would never say this, this is why people hate security teams. I'm a security 'expert' with 15+ years in the industry including speaking at DEFCON, Blackhat, and all that. I had no idea about these issues and have never heard of PASETO until now! I'm actually a few months in into my startup and we are using JWT for a lot of stuff so this is very relev…