Description
The default configuration of ASP.NET in Mono before 2.6.4 has a value of FALSE for the EnableViewStateMac property, which allows remote attackers to conduct cross-site scripting (XSS) attacks, as demonstrated by the __VIEWSTATE parameter to 2.0/menu/menu1.aspx in the XSP sample project.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mono | 2.4.4~svn151842-3 | — |
| Debian 13 | mono | 2.4.4~svn151842-3 | — |
| Debian 12 | mono | 2.4.4~svn151842-3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| NuGet | mono | < 2.6.4 | 2.6.4 | GHSA-g5c6-w479-93xm |
References
- http://www.mono-project.com/Vulnerabilities#ASP.NET_View_State_Cross-Site_Scripting
- http://www.communities.hp.com/securitysoftware/blogs/spilabs/archive/2010/04/29/asp-net-cross-site-scripting-followup-mono.aspx
- SUSE-SR:2010:013 vendor-advisory
- 40351 vdb-entry
- SUSE-SR:2010:012 vendor-advisory
- SUSE-SR:2010:014 vendor-advisory