Quantum Secular Labs / Blog / Advisories

CVE-2018-25144: Microhard Systems IPn4G: Authentication bypass

CVE-2018-25144 is rated critical with a CVSS v3.1 base score of 9.8 and NVD lists 11 affected products, including Microhardcorp Ipn4g Firmware. Per its scoring, it can be exploited over the network, without authentication, without any user interaction. The scored impact on confidentiality, integrity and availability is the highest available.

Vulnerability description

Microhard Systems IPn4G 1.1.0 contains an authentication bypass vulnerability in the hidden system-editor.sh script that allows authenticated attackers to read, modify, or delete arbitrary files. Attackers can exploit unsanitized 'path', 'savefile', 'edit', and 'delfile' parameters to perform unauthorized file system modifications through GET and POST requests.

Severity breakdown

CVSS v3.1 9.8: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

  • Attack vector: Network. Exploitable remotely over the network, with no need for local or physical access.
  • Attack complexity: Low. No special conditions; the attack can be repeated reliably.
  • Privileges required: None. No account or prior access is needed.
  • User interaction: None. No action from any user is needed.
  • Scope: Unchanged. Impact stays within the vulnerable component.
  • Confidentiality impact: High. Total loss of confidentiality; sensitive data can be fully disclosed.
  • Integrity impact: High. Total loss of integrity; data or system state can be fully modified.
  • Availability impact: High. Total loss of availability; the component can be shut down.

Underlying weakness

CWE-22: Improper Limitation of a Pathname to a Restricted Directory

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected products

  • Microhardcorp Ipn4g Firmware: 1.1.0 build1098
  • Microhardcorp Ipn3gb Firmware: 2.2.0 build2160
  • Microhardcorp Ipn4gb Firmware: 1.1.6 build1184-14; 1.1.0 rev2_build1090-2; 1.1.0 rev2_build1086
  • Microhardcorp Bullet 3g Firmware: 1.2.0 reva_build1032; 1.2.0 build1076
  • Microhardcorp Vip4gb Firmware: 1.1.6 build_1204; 1.1.6 rev3_build1184-14
  • Microhardcorp Vip4gb Wifi N Firmware: 1.1.6 rev2_build1196
  • Microhardcorp Bullet Lte Firmware: 1.2.0 build1078
  • Microhardcorp Ipn3gii Firmware: 1.2.0 build1076
  • Microhardcorp Ipn4gii Firmware: 1.2.0 build1078
  • Microhardcorp Bulletplus Firmware: 1.3.0 build1036
  • Microhardcorp Dragon Lte Firmware: 1.1.0 build1036

References