CyberSecBulletin
CVE-2023-30467NVD status: Modified

NVR MS-Nxxxx-xxG: Incorrect Authorization

CVE-2023-30467 is a critical-severity incorrect authorization vulnerability in NVR MS-Nxxxx-xxG from MileSight, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 77.9.0.18-r2 as the first without the flaw, so updating NVR MS-Nxxxx-xxG to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.08% chance of exploitation within 30 days, higher than 66% of scored CVEs.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update NVR MS-Nxxxx-xxG to 77.9.0.18-r2 or a later version.
  2. Update NVR MS-Nxxxx-xxE to 75.9.0.18-r2 or a later version.
  3. Update NVR MS-Nxxxx-xxT to 72.9.0.18-r2 or a later version.
  4. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
MilesightNVR MS-Nxxxx-xxG77.X up to, but not including, 77.9.0.18-r277.9.0.18-r2
MilesightNVR MS-Nxxxx-xxE75.X up to, but not including, 75.9.0.18-r275.9.0.18-r2
MilesightNVR MS-Nxxxx-xxT72.X up to, but not including, 72.9.0.18-r272.9.0.18-r2
MilesightNVR MS-Nxxxx-xxH71.X up to, but not including, 71.9.0.18-r271.9.0.18-r2
MilesightNVR MS-Nxxxx-xxC73.X up to, but not including, 73.9.0.18-r273.9.0.18-r2
MilesightMs-n5008-uc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n1008-unc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n1008-uc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n1004-uc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n5016-e Firmwarebefore 75.9.0.18-r275.9.0.18-r2
MilesightMs-n5008-e Firmwarebefore 75.9.0.18-r275.9.0.18-r2
MilesightMs-n7016-uh Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n7032-uh Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n8064-uh Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n8032-uh Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n1004-upc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n1008-upc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n1008-unpc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n5008-upc Firmwarebefore 73.9.0.18-r273.9.0.18-r2
MilesightMs-n5016-pe Firmwarebefore 75.9.0.18-r275.9.0.18-r2
MilesightMs-n5008-pe Firmwarebefore 75.9.0.18-r275.9.0.18-r2
MilesightMs-n7016-uph Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n7032-uph Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-n7048-uph Firmwarebefore 71.9.0.18-r271.9.0.18-r2
MilesightMs-nxxxx-xxg Firmwarebefore 77.9.0.18-r277.9.0.18-r2

Version data comes from the organisation that assigned the CVE; 1 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.5HighCNA (cert-in.org.in)
CVSS 3.19.8CriticalNVD

Official description

This vulnerability exists in Milesight 4K/H.265 Series NVR models (MS-Nxxxx-xxG, MS-Nxxxx-xxE, MS-Nxxxx-xxT, MS-Nxxxx-xxH and MS-Nxxxx-xxC), due to improper authorization at the Milesight NVR web-based management interface. A remote attacker could exploit this vulnerability by sending a specially crafted http requests on the targeted device. Successful exploitation of this vulnerability could allow remote attacker to perform unauthorized activities on the targeted device.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Incorrect Authorization

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

How developers prevent this class of flaw

  • Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using authorization frameworks such as the JAAS Authorization Framework and the OWASP ESAPI Access Control feature.

More Incorrect Authorization vulnerabilities (CWE-863)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in NVR MS-Nxxxx-xxG

All NVR MS-Nxxxx-xxG vulnerabilities

Recent Incorrect Authorization vulnerabilities

Spotted an error? Tell us.