what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Vanilla Forums 2.0.18.5 Local File Inclusion

Vanilla Forums 2.0.18.5 Local File Inclusion
Posted Oct 7, 2013
Authored by EgiX

Vanilla Forums versions 2.0.18.5 and below suffer from a PHP object injection vulnerability in class.utilitycontroller.php that in turn allows for local file inclusion.

tags | exploit, local, php, file inclusion
advisories | CVE-2013-3528
SHA-256 | 829bb0d9cc0b99656c9ede4877cba82c24d8fcd7cfe7d08bf5d263689320b351

Vanilla Forums 2.0.18.5 Local File Inclusion

Change Mirror Download
-------------------------------------------------------------------------------------------
Vanilla Forums <= 2.0.18.5 (class.utilitycontroller.php) PHP Object
Injection Vulnerability
-------------------------------------------------------------------------------------------


[-] Software Link:

http://vanillaforums.org/


[-] Affected Versions:

All versions from 2.0 to 2.0.18.5.


[-] Vulnerability Description:

The vulnerable code is located in
/applications/dashboard/controllers/class.utilitycontroller.php:

316. // Get the message, response, and transientkey
317. $Messages = TrueStripSlashes(GetValue('Messages', $_POST));
318. $Response = TrueStripSlashes(GetValue('Response', $_POST));
319. $TransientKey = GetIncomingValue('TransientKey', '');
320.
321. // If the key validates
322. $Session = Gdn::Session();
323. if ($Session->ValidateTransientKey($TransientKey)) {
324. // If messages wasn't empty
325. if ($Messages != '') {
326. // Unserialize them & save them if necessary
327. $Messages = Gdn_Format::Unserialize($Messages);

[...]

358. // If the response wasn't empty, save it in the config
359. if ($Response != '')
360. $Save['Garden.RequiredUpdates'] =
Gdn_Format::Unserialize($Response);

User input passed through the "Messages" and "Response" POST parameters
is not properly sanitized
before being used in a call to the "Gdn_Format::Unserialize" method at
lines 327 and 360. This can
be exploited to inject arbitrary PHP objects into the application scope,
that could allow an attacker
to conduct Local File Inclusion attacks by abusing the
"Gdn_Module::__toString" method, which triggers
a call to the "Gdn_Module::FetchView" method:

111. public function FetchView() {
112. $ViewPath = $this->FetchViewLocation();
113. $String = '';
114. ob_start();
115. if(is_object($this->_Sender) && isset($this->_Sender->Data)) {
116. $Data = $this->_Sender->Data;
117. } else {
118. $Data = array();
119. }
120. include ($ViewPath);

The value returned by the "Gdn_Module::FetchViewLocation" method at line
112 can be controlled by the
"_ApplicationFolder" object's property, which results in an arbitrary
local file inclusion at line 120.
Successful exploitation of the vulnerability using this vector requires
the application running on
PHP < 5.3.4, because it needs a null-byte injection attack. However,
other attack vectors might
be possible, e.g. leveraging magic methods of classes defined in
third-party components.


[-] Solution:

Update to version 2.0.18.6 or higher.


[-] Disclosure Timeline:

[02/03/2013] - Vendor notified
[22/03/2013] - Version 2.0.18.6 released: http://git.io/7EXdpQ
[10/05/2013] - CVE number assigned
[07/10/2013] - Public disclosure


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2013-3528 to this vulnerability.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2013-09
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close