Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
V5903. OWASP. A cryptographically...
menu mobile close menu
Analyzing projects
Additional information
toggle menu Contents

V5903. OWASP. A cryptographically weak cipher algorithm is used in security-sensitive code. Consider using a stronger alternative.

Nov 26 2026

The analyzer has detected the use of a cryptographically weak encryption algorithm in security-sensitive code.

Vulnerabilities related to weak encryption can be classified under the following categories in the OWASP Top 10 Application Security Risks 2025:

The following weak encryption algorithms can be dangerous: DES, RC2, and RC4. They handle key lengths of up to 64 bits, which can be brute-forced using modern technology in a relatively short amount of time.

It is also recommended to replace the following encryption algorithms: Triple DES, Blowfish, CAST5, TEA (XTEA), and Skipjack. Their crypto-resistance may be lower than that of modern ones due to outdated encryption parameters, such as small block and/or key sizes.

As an alternative, you can use one of the modern encryption algorithms that support block and key sizes of 128 bits or more: AES, Kuznyechik, Twofish, Serpent, ChaCha20, etc.

The example:

func ProcessRequest(w http.ResponseWriter, r *http.Request) {
  ....
  data := []byte(r.FormValue("data"))

  key := ....
  ct := make([]byte, len(data))

  block, _ := des.NewCipher(key)
  ....
  json.NewEncoder(w).Encode(
    map[string]string{"ct": hex.EncodeToString(ct), 
                      ....},
  )
}

Arbitrary data is encrypted using the outdated DES algorithm. This algorithm leaves data relatively vulnerable to a number of cryptographic attacks. To avoid security issues, you can replace DES with a more secure algorithm that meets current standards, such as AES:

func ProcessRequest(w http.ResponseWriter, r *http.Request) {
  ....
  key := ....
  block, _ := aes.NewCipher(key)
  ....
}

You can find more recommendations for secure data encryption on the OWASP Cheat Sheet Series pages, such as:

This diagnostic rule is classified as: