CVE-2010-3870
Description
The utf8_decode function in PHP before 5.3.4 does not properly handle non-shortest form UTF-8 encoding and ill-formed subsequences in UTF-8 data, which makes it easier for remote attackers to bypass cross-site scripting (XSS) and SQL injection protection mechanisms via a crafted string.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
PHP 5.3.2 - 'xml_utf8_decode()' UTF-8 Input Validation
OS impact
Ubuntu Affected 5 releases
| Version | Status | Fixed in |
|---|---|---|
| 10.10 | Affected | โ |
| 10.04 | Affected | โ |
| 9.10 | Affected | โ |
| 8.04 | Affected | โ |
| 6.06 | Affected | โ |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| php | php | {"endExcluding":"5.2.14"} | 5.2.14 |
References
- http://bugs.php.net/bug.php?id=48230
- http://bugs.php.net/bug.php?id=49687
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052836.html
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052845.html
- http://lists.opensuse.org/opensuse-security-announce/2010-12/msg00000.html
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://secunia.com/advisories/42410
- http://secunia.com/advisories/42812
- http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html
- http://support.apple.com/kb/HT4581
- http://svn.php.net/viewvc?view=revision&revision=304959
- http://us2.php.net/manual/en/function.utf8-decode.php#83935
- http://www.acunetix.com/blog/web-security-articles/security-risks-associated-with-utf8_decode/
- http://www.blackhat.com/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf
- http://www.mandriva.com/en/security/advisories?name=MDVSA-2010:224
- http://www.openwall.com/lists/oss-security/2010/11/02/1
- http://www.openwall.com/lists/oss-security/2010/11/02/11
- http://www.openwall.com/lists/oss-security/2010/11/02/2
- http://www.openwall.com/lists/oss-security/2010/11/02/4
- http://www.openwall.com/lists/oss-security/2010/11/02/6
- http://www.openwall.com/lists/oss-security/2010/11/02/8
- http://www.openwall.com/lists/oss-security/2010/11/03/1
- http://www.php.net/ChangeLog-5.php
- http://www.redhat.com/support/errata/RHSA-2010-0919.html
CWEs
CWE-20
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.