Home[1] Files[2] News[3] &[SERVICES_TAB] Contact[4] Add New[5]
- Xenforo 2.2.15 Remote Code Execution[6]
- Authored by EgiX[7] | Site karmainsecurity.com[8]
-
XenForo versions 2.2.15 and below suffer from a remote code execution vulnerability in the Template system.
- advisories | CVE-2024-38458[9]
- SHA-256 |
141922e324fd21737d323eaed2f53c7bc972900273dfc3e19ea72c0648544233 - Download[10] | Favorite[11] | View[12]
Change Mirror[13] Download[14]
-----------------------------------------------------------------------
XenForo <= 2.2.15 (Template System) Remote Code Execution Vulnerability
-----------------------------------------------------------------------
[-] Software Link:
https://xenforo.com
[-] Affected Versions:
Version 2.2.15 and prior versions.
[-] Vulnerability Description:
XenForo implements a template system which gives complete control over
the layout of XenForo pages. Through these templates, it might be
possible to call certain "callback methods", however there is a sort
of "sandbox" which allows to solely call read-only methods: a method
is to be considered read-only when it begins with one of the allowed
prefixes, such as "get" or "filter". Malicious users might be able to
bypass this "sandbox" by abusing the getRepository() method from the
XF\Mvc\Entity\Manager class in order to get an instance object of the
XF\Util\Arr class, and from there they can abuse its filterRecursive()
static method in order to execute arbitrary callbacks or functions
(internally, this method calls the array_filter() PHP function with an
attacker-controlled "callback" parameter). As such, this can be
exploited to e.g. execute arbitrary OS commands by using a payload
like the following within a template, which will try to execute the
passthru() PHP function passing to it the string "whoami" as argument,
potentially resulting in the execution of the "whoami" command on the
web server:
{{ $xf.app.em.getRepository('XF\Util\Arr').filterRecursive(['whoami'],'passthru')
}}
Successful exploitation of this vulnerability requires an account with
permissions to administer styles or widgets.
[-] Solution:
Update to a fixed version or apply the vendor patches.
[-] Disclosure Timeline:
[22/02/2024] - Vulnerability details sent to SSD Secure Disclosure
[05/06/2024] - Vendor released patches and fixed versions
[14/06/2024] - CVE identifier requested
[16/06/2024] - CVE identifier assigned
[16/07/2024] - Coordinated public disclosure
[-] CVE Reference:
The Common Vulnerabilities and Exposures project (cve.mitre.org) has
assigned the name CVE-2024-38458 to this vulnerability.
[-] Credits:
Vulnerability discovered by Egidio Romano.
[-] Other References:
https://xenforo.com/community/threads/222133
https://ssd-disclosure.com/ssd-advisory-xenforo-rce-via-csrf/
[-] Original Advisory:
http://karmainsecurity.com/KIS-2024-06
File Tags
- ActiveX[20] (933)
- Advisory[21] (86,014)
- Arbitrary[22] (16,815)
- BBS[23] (2,859)
- Bypass[24] (1,852)
- CGI[25] (1,033)
- Code Execution[26] (7,773)
- Conference[27] (691)
- Cracker[28] (844)
- CSRF[29] (3,380)
- DoS[30] (24,979)
- Encryption[31] (2,389)
- Exploit[32] (53,040)
- File Inclusion[33] (4,256)
- File Upload[34] (989)
- Firewall[35] (822)
- Info Disclosure[36] (2,874)
- Intrusion Detection[37] (913)
- Java[38] (3,136)
- JavaScript[39] (895)
- Kernel[40] (7,157)
- Local[41] (14,768)
- Magazine[42] (586)
- Overflow[43] (13,136)
- Perl[44] (1,435)
- PHP[45] (5,219)
- Proof of Concept[46] (2,381)
- Protocol[47] (3,723)
- Python[48] (1,629)
- Remote[49] (31,598)
- Root[50] (3,625)
- Rootkit[51] (525)
- Ruby[52] (631)
- Scanner[53] (1,657)
- Security Tool[54] (8,019)
- Shell[55] (3,270)
- Shellcode[56] (1,217)
- Sniffer[57] (902)
- Spoof[58] (2,270)
- SQL Injection[59] (16,583)
- TCP[60] (2,439)
- Trojan[61] (690)
- UDP[62] (901)
- Virus[63] (669)
- Vulnerability[64] (32,890)
- Web[65] (9,946)
- Whitepaper[66] (3,781)
- x86[67] (967)
- XSS[68] (18,233)
- Other[69]
File Archives
- July 2024[70]
- June 2024[71]
- May 2024[72]
- April 2024[73]
- March 2024[74]
- February 2024[75]
- January 2024[76]
- December 2023[77]
- November 2023[78]
- October 2023[79]
- September 2023[80]
- August 2023[81]
- Older[82]
Systems
- AIX[83] (429)
- Apple[84] (2,090)
- BSD[85] (376)
- CentOS[86] (58)
- Cisco[87] (1,927)
- Debian[88] (7,080)
- Fedora[89] (1,693)
- FreeBSD[90] (1,246)
- Gentoo[91] (4,531)
- HPUX[92] (880)
- iOS[93] (376)
- iPhone[94] (108)
- IRIX[95] (220)
- Juniper[96] (69)
- Linux[97] (50,409)
- Mac OS X[98] (691)
- Mandriva[99] (3,105)
- NetBSD[100] (256)
- OpenBSD[101] (489)
- RedHat[102] (16,312)
- Slackware[103] (941)
- Solaris[104] (1,611)
- SUSE[105] (1,444)
- Ubuntu[106] (9,667)
- UNIX[107] (9,427)
- UnixWare[108] (187)
- Windows[109] (6,666)
- Other[110]
- Services
- Security Services[121]
- Hosting By
- Rokasec[122]


