Code behind the vulnerability
summary
Seven real bug classes appear with exact causes and fixes: predictable hash codes lead to 1.5 million colliding form fields and a Hash DoS fixed by per-process random seeds and request limits; padding-oracle exploits leak web.config and let attackers craft membership cookies; unchecked BinaryFormatter/ViewState deserialization enables file-deleting or RCE via the temp file collection class; catastrophic regex backtracking and host‑header URL generation enable DoS and phishing; WSDL/WISDOM codegen lets remote code compile; fixes: HMAC signing, constrained serializers, timeouts and input limits.
AI-written summary · about
chapters (4)
- 0:00Start
- 3:13Hash DOS (CVE-2011-3141) A Denial of Service caused by parsing FORM inputs. Caused by HashTable and Dictionary using a
- 14:13SharePoint ViewState RCE (CVE-2013-1330) Remote code execution via Serialization.
- 32:55summary In summary In summary Don't use unconstrained binary formatters. Sign your data, even when it is encrypted mit array sizes built from user input. On't use regular expressions.
