SCW Icons
hero bg no divider
Blog

사이킥 시그니처 - 알아야 할 사항

Charlie Eriksen
Published Apr 27, 2022
Last updated on Mar 09, 2026

On April 19th 2022, Neil Madden disclosed a vulnerability in Oracle Java 15 through 18, and OpenJDK 15, 17, and 18. The vulnerability lies in the cryptography for ECDSA signatures, which allows an attacker to bypass signature checks entirely for these signatures. 

It’s easy to see headlines about this vulnerability and skim right past them given the obscure nature of ECDSA signatures. However, ECDSA signatures actually play a key role in protecting systems across the internet for critical tasks like authentication.

Before we dive into details, if you want to experience how hackers exploit Psychic Signatures in a hands-on way. Jump straight into our free lab - Missions to try it out yourself.

What’s the big deal with ECDSA?

You may not have heard of ECDSA before. It’s the short name for Elliptic Curve Digital Signature Algorithm, which is a type of cryptography that makes use of the mathematical properties of elliptic curves, offering some of the strongest cryptographic security in the industry at the moment.

This means that it’s used for a lot of important functions, like:

  • The signing of SSL certificates
  • Handshakes during encrypted communications
  • SAML
  • JWT signatures
  • OpenID Connect signatures

This means that ECDSA is a key part of many of the most sensitive functions for protecting systems out there. The ability to bypass signature checks would be potentially quite devastating.

How is the vulnerability exploited?

The mathematics of ECDSA is somewhat complicated, unfortunately. But the key thing to know is that an ECDSA signature contains 2 pieces of information: r, and s

These numbers are used to calculate the validity of the signature. The value r is the “result” (left side) of a calculation using both r and s on the right side of the equation. Given that multiplying by 0 is a bad idea, the ECDSA specification explicitly calls out that if the value of r or s is ever 0, they should be discarded. 

But the Java implementation of ECDSA forgot to take this into account. As such, it will accept a signature with both r and s is 0, which will always be true. We can demonstrate this with an example of a JWT, showing just how easy it is. Using https://token.dev/, we can generate a token with the algorithm ES256, similar to one that would be generated  by an application:

A token generated with the algo ES256

Recall that a JWT is split up into 3 parts:

  • Header (in blue)
  • Payload (in green)
  • Signature (in red)

Now, if we wanted to bypass the signature check, how would we go about this? The signature specifies the values for r and s, and is encoded in the DER format. 

DER encode for signature values

Let’s change our JWT to use this new signature. Note that in JWTs, the equal sign is not included.

New JWT using DER encoded signature

Now, our signature has r and s set to 0, and in vulnerable versions of Java the signature check will now succeed for any payload you specify. 

Who’s affected, and how to mitigate it?

The vulnerability affects both Oracle Java and OpenJDK. These include:

Oracle Java SE (And older, non-supported versions): 

  • 18
  • 17.0.2

Oracle GraalVM Enterprise Edition: 

  • 22.0.0.2
  • 21.3.1

OpenJDK:

  • 18
  • 17.0.2
  • 15.0.6
  • 13.0.10
  • 11.0.14
  • 8u322
  • 7u331

Both Oracle and OpenJDK have put out advisories, and patches for the issue that can be applied right away. 

Hands-on practices to defend against this vulnerability

Here at Secure Code Warrior, we strive to provide developers the most relevant information and hands-on exercises for critical vulnerabilities, whether it is a latest one like Psychic Signatures or something that’s been around for years.

We believe that, to truly keep risk at bay, it is necessary to enable developers to understand the defense mechanism and write secure code from the start. That’s why we create a step-by-step walkthrough of this vulnerability (and many others) for you and the teams that are impacted. 

In the walkthrough, you will be able to follow the instruction to exploit the Physic Signature in JWTs and see the impact to a functioning app in real-time.

Try it out now.

리소스 보기
리소스 보기

Psychic Signature 취약점은 인증과 같은 중요한 작업을 위해 시스템을 보호하는 ECDSA 서명용 암호화에 있습니다.해커는 이 취약점으로 인해 모든 서명 검사를 우회할 수 있습니다.이 게시물에서는 이 문제의 정의 및 완화 방법에 대해 설명하겠습니다.

더 많은 것에 관심이 있으세요?

learn more

Secure Code Warrior는 전체 소프트웨어 개발 라이프사이클에서 코드를 보호하고 사이버 보안을 최우선으로 생각하는 문화를 조성할 수 있도록 조직을 위해 여기 있습니다.AppSec 관리자, 개발자, CISO 또는 보안 관련 누구든 관계없이 조직이 안전하지 않은 코드와 관련된 위험을 줄일 수 있도록 도와드릴 수 있습니다.

데모 예약
공유 대상:
linkedin brandsSocialx logo
작성자
Charlie Eriksen
Published Apr 27, 2022

공유 대상:
linkedin brandsSocialx logo

On April 19th 2022, Neil Madden disclosed a vulnerability in Oracle Java 15 through 18, and OpenJDK 15, 17, and 18. The vulnerability lies in the cryptography for ECDSA signatures, which allows an attacker to bypass signature checks entirely for these signatures. 

It’s easy to see headlines about this vulnerability and skim right past them given the obscure nature of ECDSA signatures. However, ECDSA signatures actually play a key role in protecting systems across the internet for critical tasks like authentication.

Before we dive into details, if you want to experience how hackers exploit Psychic Signatures in a hands-on way. Jump straight into our free lab - Missions to try it out yourself.

What’s the big deal with ECDSA?

You may not have heard of ECDSA before. It’s the short name for Elliptic Curve Digital Signature Algorithm, which is a type of cryptography that makes use of the mathematical properties of elliptic curves, offering some of the strongest cryptographic security in the industry at the moment.

This means that it’s used for a lot of important functions, like:

  • The signing of SSL certificates
  • Handshakes during encrypted communications
  • SAML
  • JWT signatures
  • OpenID Connect signatures

This means that ECDSA is a key part of many of the most sensitive functions for protecting systems out there. The ability to bypass signature checks would be potentially quite devastating.

How is the vulnerability exploited?

The mathematics of ECDSA is somewhat complicated, unfortunately. But the key thing to know is that an ECDSA signature contains 2 pieces of information: r, and s

These numbers are used to calculate the validity of the signature. The value r is the “result” (left side) of a calculation using both r and s on the right side of the equation. Given that multiplying by 0 is a bad idea, the ECDSA specification explicitly calls out that if the value of r or s is ever 0, they should be discarded. 

But the Java implementation of ECDSA forgot to take this into account. As such, it will accept a signature with both r and s is 0, which will always be true. We can demonstrate this with an example of a JWT, showing just how easy it is. Using https://token.dev/, we can generate a token with the algorithm ES256, similar to one that would be generated  by an application:

A token generated with the algo ES256

Recall that a JWT is split up into 3 parts:

  • Header (in blue)
  • Payload (in green)
  • Signature (in red)

Now, if we wanted to bypass the signature check, how would we go about this? The signature specifies the values for r and s, and is encoded in the DER format. 

DER encode for signature values

Let’s change our JWT to use this new signature. Note that in JWTs, the equal sign is not included.

New JWT using DER encoded signature

Now, our signature has r and s set to 0, and in vulnerable versions of Java the signature check will now succeed for any payload you specify. 

Who’s affected, and how to mitigate it?

The vulnerability affects both Oracle Java and OpenJDK. These include:

Oracle Java SE (And older, non-supported versions): 

  • 18
  • 17.0.2

Oracle GraalVM Enterprise Edition: 

  • 22.0.0.2
  • 21.3.1

OpenJDK:

  • 18
  • 17.0.2
  • 15.0.6
  • 13.0.10
  • 11.0.14
  • 8u322
  • 7u331

Both Oracle and OpenJDK have put out advisories, and patches for the issue that can be applied right away. 

Hands-on practices to defend against this vulnerability

Here at Secure Code Warrior, we strive to provide developers the most relevant information and hands-on exercises for critical vulnerabilities, whether it is a latest one like Psychic Signatures or something that’s been around for years.

We believe that, to truly keep risk at bay, it is necessary to enable developers to understand the defense mechanism and write secure code from the start. That’s why we create a step-by-step walkthrough of this vulnerability (and many others) for you and the teams that are impacted. 

In the walkthrough, you will be able to follow the instruction to exploit the Physic Signature in JWTs and see the impact to a functioning app in real-time.

Try it out now.

리소스 보기
리소스 보기

보고서를 다운로드하려면 아래 양식을 작성하세요.

당사 제품 및/또는 관련 보안 코딩 주제에 대한 정보를 보내실 수 있도록 귀하의 동의를 구합니다.당사는 항상 귀하의 개인 정보를 최대한의 주의를 기울여 취급하며 마케팅 목적으로 다른 회사에 절대 판매하지 않습니다.

제출
scw success icon
scw error icon
양식을 제출하려면 'Analytics' 쿠키를 활성화하십시오.완료되면 언제든지 다시 비활성화할 수 있습니다.

On April 19th 2022, Neil Madden disclosed a vulnerability in Oracle Java 15 through 18, and OpenJDK 15, 17, and 18. The vulnerability lies in the cryptography for ECDSA signatures, which allows an attacker to bypass signature checks entirely for these signatures. 

It’s easy to see headlines about this vulnerability and skim right past them given the obscure nature of ECDSA signatures. However, ECDSA signatures actually play a key role in protecting systems across the internet for critical tasks like authentication.

Before we dive into details, if you want to experience how hackers exploit Psychic Signatures in a hands-on way. Jump straight into our free lab - Missions to try it out yourself.

What’s the big deal with ECDSA?

You may not have heard of ECDSA before. It’s the short name for Elliptic Curve Digital Signature Algorithm, which is a type of cryptography that makes use of the mathematical properties of elliptic curves, offering some of the strongest cryptographic security in the industry at the moment.

This means that it’s used for a lot of important functions, like:

  • The signing of SSL certificates
  • Handshakes during encrypted communications
  • SAML
  • JWT signatures
  • OpenID Connect signatures

This means that ECDSA is a key part of many of the most sensitive functions for protecting systems out there. The ability to bypass signature checks would be potentially quite devastating.

How is the vulnerability exploited?

The mathematics of ECDSA is somewhat complicated, unfortunately. But the key thing to know is that an ECDSA signature contains 2 pieces of information: r, and s

These numbers are used to calculate the validity of the signature. The value r is the “result” (left side) of a calculation using both r and s on the right side of the equation. Given that multiplying by 0 is a bad idea, the ECDSA specification explicitly calls out that if the value of r or s is ever 0, they should be discarded. 

But the Java implementation of ECDSA forgot to take this into account. As such, it will accept a signature with both r and s is 0, which will always be true. We can demonstrate this with an example of a JWT, showing just how easy it is. Using https://token.dev/, we can generate a token with the algorithm ES256, similar to one that would be generated  by an application:

A token generated with the algo ES256

Recall that a JWT is split up into 3 parts:

  • Header (in blue)
  • Payload (in green)
  • Signature (in red)

Now, if we wanted to bypass the signature check, how would we go about this? The signature specifies the values for r and s, and is encoded in the DER format. 

DER encode for signature values

Let’s change our JWT to use this new signature. Note that in JWTs, the equal sign is not included.

New JWT using DER encoded signature

Now, our signature has r and s set to 0, and in vulnerable versions of Java the signature check will now succeed for any payload you specify. 

Who’s affected, and how to mitigate it?

The vulnerability affects both Oracle Java and OpenJDK. These include:

Oracle Java SE (And older, non-supported versions): 

  • 18
  • 17.0.2

Oracle GraalVM Enterprise Edition: 

  • 22.0.0.2
  • 21.3.1

OpenJDK:

  • 18
  • 17.0.2
  • 15.0.6
  • 13.0.10
  • 11.0.14
  • 8u322
  • 7u331

Both Oracle and OpenJDK have put out advisories, and patches for the issue that can be applied right away. 

Hands-on practices to defend against this vulnerability

Here at Secure Code Warrior, we strive to provide developers the most relevant information and hands-on exercises for critical vulnerabilities, whether it is a latest one like Psychic Signatures or something that’s been around for years.

We believe that, to truly keep risk at bay, it is necessary to enable developers to understand the defense mechanism and write secure code from the start. That’s why we create a step-by-step walkthrough of this vulnerability (and many others) for you and the teams that are impacted. 

In the walkthrough, you will be able to follow the instruction to exploit the Physic Signature in JWTs and see the impact to a functioning app in real-time.

Try it out now.

웨비나 보기
시작하기
learn more

아래 링크를 클릭하고 이 리소스의 PDF를 다운로드하십시오.

Secure Code Warrior는 전체 소프트웨어 개발 라이프사이클에서 코드를 보호하고 사이버 보안을 최우선으로 생각하는 문화를 조성할 수 있도록 조직을 위해 여기 있습니다.AppSec 관리자, 개발자, CISO 또는 보안 관련 누구든 관계없이 조직이 안전하지 않은 코드와 관련된 위험을 줄일 수 있도록 도와드릴 수 있습니다.

보고서 보기데모 예약
리소스 보기
공유 대상:
linkedin brandsSocialx logo
더 많은 것에 관심이 있으세요?

공유 대상:
linkedin brandsSocialx logo
작성자
Charlie Eriksen
Published Apr 27, 2022

공유 대상:
linkedin brandsSocialx logo

On April 19th 2022, Neil Madden disclosed a vulnerability in Oracle Java 15 through 18, and OpenJDK 15, 17, and 18. The vulnerability lies in the cryptography for ECDSA signatures, which allows an attacker to bypass signature checks entirely for these signatures. 

It’s easy to see headlines about this vulnerability and skim right past them given the obscure nature of ECDSA signatures. However, ECDSA signatures actually play a key role in protecting systems across the internet for critical tasks like authentication.

Before we dive into details, if you want to experience how hackers exploit Psychic Signatures in a hands-on way. Jump straight into our free lab - Missions to try it out yourself.

What’s the big deal with ECDSA?

You may not have heard of ECDSA before. It’s the short name for Elliptic Curve Digital Signature Algorithm, which is a type of cryptography that makes use of the mathematical properties of elliptic curves, offering some of the strongest cryptographic security in the industry at the moment.

This means that it’s used for a lot of important functions, like:

  • The signing of SSL certificates
  • Handshakes during encrypted communications
  • SAML
  • JWT signatures
  • OpenID Connect signatures

This means that ECDSA is a key part of many of the most sensitive functions for protecting systems out there. The ability to bypass signature checks would be potentially quite devastating.

How is the vulnerability exploited?

The mathematics of ECDSA is somewhat complicated, unfortunately. But the key thing to know is that an ECDSA signature contains 2 pieces of information: r, and s

These numbers are used to calculate the validity of the signature. The value r is the “result” (left side) of a calculation using both r and s on the right side of the equation. Given that multiplying by 0 is a bad idea, the ECDSA specification explicitly calls out that if the value of r or s is ever 0, they should be discarded. 

But the Java implementation of ECDSA forgot to take this into account. As such, it will accept a signature with both r and s is 0, which will always be true. We can demonstrate this with an example of a JWT, showing just how easy it is. Using https://token.dev/, we can generate a token with the algorithm ES256, similar to one that would be generated  by an application:

A token generated with the algo ES256

Recall that a JWT is split up into 3 parts:

  • Header (in blue)
  • Payload (in green)
  • Signature (in red)

Now, if we wanted to bypass the signature check, how would we go about this? The signature specifies the values for r and s, and is encoded in the DER format. 

DER encode for signature values

Let’s change our JWT to use this new signature. Note that in JWTs, the equal sign is not included.

New JWT using DER encoded signature

Now, our signature has r and s set to 0, and in vulnerable versions of Java the signature check will now succeed for any payload you specify. 

Who’s affected, and how to mitigate it?

The vulnerability affects both Oracle Java and OpenJDK. These include:

Oracle Java SE (And older, non-supported versions): 

  • 18
  • 17.0.2

Oracle GraalVM Enterprise Edition: 

  • 22.0.0.2
  • 21.3.1

OpenJDK:

  • 18
  • 17.0.2
  • 15.0.6
  • 13.0.10
  • 11.0.14
  • 8u322
  • 7u331

Both Oracle and OpenJDK have put out advisories, and patches for the issue that can be applied right away. 

Hands-on practices to defend against this vulnerability

Here at Secure Code Warrior, we strive to provide developers the most relevant information and hands-on exercises for critical vulnerabilities, whether it is a latest one like Psychic Signatures or something that’s been around for years.

We believe that, to truly keep risk at bay, it is necessary to enable developers to understand the defense mechanism and write secure code from the start. That’s why we create a step-by-step walkthrough of this vulnerability (and many others) for you and the teams that are impacted. 

In the walkthrough, you will be able to follow the instruction to exploit the Physic Signature in JWTs and see the impact to a functioning app in real-time.

Try it out now.

목차

PDF 다운로드
리소스 보기
더 많은 것에 관심이 있으세요?

learn more

Secure Code Warrior는 전체 소프트웨어 개발 라이프사이클에서 코드를 보호하고 사이버 보안을 최우선으로 생각하는 문화를 조성할 수 있도록 조직을 위해 여기 있습니다.AppSec 관리자, 개발자, CISO 또는 보안 관련 누구든 관계없이 조직이 안전하지 않은 코드와 관련된 위험을 줄일 수 있도록 도와드릴 수 있습니다.

데모 예약다운로드
공유 대상:
linkedin brandsSocialx logo
리소스 허브

시작하는 데 도움이 되는 리소스

더 많은 게시물
리소스 허브

시작하는 데 도움이 되는 리소스

더 많은 게시물