CAPECattack pattern

CAPEC-475 Signature Spoofing by Improper Validation

High Official page ↗
Abstraction
Detailed
Status
Draft
Likelihood of attack
Low
Typical severity
High
CAPEC version
3.9

Description

An adversary exploits a cryptographic weakness in the signature verification algorithm implementation to generate a valid signature without knowing the key.

Extended description

Signature verification algorithms are generally used to determine whether a certificate or piece of code (e.g. executable, binary, etc.) possesses a valid signature and can be trusted. If the leveraged algorithm confirms that a valid signature exists, it establishes a foundation of trust that is further conveyed to the end-user when interacting with a website or application. However, if the signature verification algorithm improperly validates the signature, either by not validating the signature at all or by failing to fully validate the signature, it could result in an adversary generating a spoofed signature and being classified as a legitimate entity. Successfully exploiting such a weakness could further allow the adversary to reroute users to malicious sites, steals files, activates microphones, records keystrokes and passwords, wipes disks, installs malware, and more.

Prerequisites

• Recipient is using a weak cryptographic signature verification algorithm or a weak implementation of a cryptographic signature verification algorithm, or the configuration of the recipient's application accepts the use of keys generated using cryptographically weak signature verification algorithms.

Skills required

• [High] Cryptanalysis of signature verification algorithm • [High] Reverse engineering and cryptanalysis of signature verification algorithm implementation

Mitigations

• Use programs and products that contain cryptographic elements that have been thoroughly tested for flaws in the signature verification routines.

Related

Can precede · CAPEC (1)

Child of · CAPEC (1)

Weakness · CWE (3)

  • CWE-295 Improper Certificate Validation weakness
  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm weakness
  • CWE-347 Improper Verification of Cryptographic Signature weakness

Referenced by CWE · attack pattern (3)

  • CWE-295 Improper Certificate Validation weakness
  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm weakness
  • CWE-347 Improper Verification of Cryptographic Signature weakness