Generic Padding Oracle

Type: Active Scan

Risk: High

Description

By manipulating the padding on an encrypted string, an attacker is able to generate an error message that indicates a likely ‘padding oracle’ vulnerability. Such a vulnerability can affect any application or framework that uses encryption improperly, such as some versions of ASP.net, Java Server Faces, and Mono. An attacker may exploit this issue to decrypt data and recover encryption keys, potentially viewing and modifying confidential data. This plugin should detect the MS10-070 padding oracle vulnerability in ASP.net if CustomErrors are enabled for that.

Solution

Update the affected server software, or modify the scripts so that they properly validate encrypted data before attempting decryption.

References

CWE: 209

WASC: 20

Code

Last updated: 2020-04-30 16:12:39.623Z