VWE-2015-1112 Printable Version

https://www.vaultwiki.org/pages/Book/Documentation/VWE-2015-1112
This page is a chapter in Info Known Vulnerabilities

This page has been seen 234,940 times.

    • Created by on
      Last updated by on
Common NamePCRE Backtrack Vulnerability
VWE-IDVWE-2015-1112
Related ReportNone
SeverityHIGH
Exploit DifficultyDifficult
PlatformAffects all platforms supported by the vulnerable versions.
DescriptionJavascript injection.
DiscoveredFebruary 19, 2015
ResolvedApril 13, 2015
Patches Available4.0.3
Workaround
  1. Learn what your PHP installation's configuration value is for pcre.backtrack_limit. This might appear in your php.ini file. If this does not appear in that file, the default value is as follows:
    • For PHP 5.3.8 and higher: the value is 1,000,000
    • For PHP 5.3.7 and lower: the value is 100,000
  2. Check the following VaultWiki settings:
    • VaultWiki: Content Types > Maximum Characters in Page Content
    • VaultWiki: Content Types > Maximum Characters in Discussion Comments
  3. Make sure that the values of each setting is set to a lower amount than your pcre.backtrack_limit. If one of the settings is higher, you should lower it to maintain the security of your installation, or increase pcre.backtrack_limit to a value higher than each setting.
  4. Check your Special:LongPages page for existing pages that are longer than pcre.backtrack_limit.
  5. These pages remain a vector for attack while they are longer than this limit. You must shorten these pages.
The versions listed below are known to be affected by this issue. If you are using one of those versions, you should update to a newer release that has no known vulnerabilities.