{"vuid":"VU#986018","idnumber":"986018","name":"New Netcomm router models NF20MESH, NF20, and NL1902 vulnerabilities","keywords":null,"overview":"### Overview\r\nNetcomm router models NF20MESH, NF20, and NL1902 running software versions earlier than R6B035 contain two vulnerabilities.  The first is an authentication bypass vulnerability that allows an unauthenticated user to access content from both inside and outside the network. The second is a stack-based buffer overflow that allows an instruction pointer to be overwritten on the stack, thereby crashing the application at a known location. The two vulnerabilities, when chained together, permit a remote, unauthenticated attacker to execute arbitrary code. \r\n\r\n### Description\r\nNetcomm router models NF20MESH, NF20, and NL1902 running software versions earlier than R6B035 may contain two vulnerabilities: \r\n\r\n**CVE-2022-4873**\r\nA stack based buffer overflow affects the sessionKey parameter. By providing a specific number of bytes, the instruction pointer is able to be overwritten on the stack and crashes the application at a known location.\r\n\r\n**CVE-2022-4874**\r\nAuthentication bypass allows an unauthenticated user to access content. In order to serve static content, the application performs a check for the existence of specific characters in the URL (.css, .png etc). If it exists, it performs a \"fake login\" to give the request an active session to load the file and not redirect to the login page.\r\n\r\nThe tested models that were impacted are Netcomm routers using a Broadcom chipset that had third-party code added by Shenzhen Gongjin Electronics.  The third-party code introduced the vulnerabilities. These routers are  deployed by residential internet service providers.\r\n\r\n### Impact\r\nThe two vulnerabilities, when chained together, permit a remote, unauthenticated attacker to execute arbitrary code.  The attacker can first gain unauthorized access to affected devices, and then use those entry points to gain access to other networks or compromise the availability, integrity, or confidentiality of data being transmitted from the internal network. The reporter has produced a [github PoC](https://github.com/scarvell/advisories/blob/main/2022_netcomm_nf20mesh_unauth_rce.md) that shows how to combine both vulnerabilities to achieve unauthenticated remote code execution.\r\n\r\n### Solution\r\nUpdate the router firmware to version R6B035 from the vendor website at [https://support.netcommwireless.com/products/NF20#Firmware](https://support.netcommwireless.com/products/NF20#Firmware).\r\n \r\n### Acknowledgements\r\nThanks to the reporter Brendan Scarvell for reporting this vulnerability.\r\n\r\nThis document was written by Timur Snoke.","clean_desc":null,"impact":null,"resolution":null,"workarounds":null,"sysaffected":null,"thanks":null,"author":null,"public":["https://github.com/scarvell/advisories/blob/main/2022_netcomm_nf20mesh_unauth_rce.md","https://support.netcommwireless.com/products/NF20#Firmware"],"cveids":["CVE-2022-4873","CVE-2022-4874"],"certadvisory":null,"uscerttechnicalalert":null,"datecreated":"2023-01-17T17:40:29.730686Z","publicdate":"2023-01-17T17:40:29.392133Z","datefirstpublished":"2023-01-17T17:40:29.755060Z","dateupdated":"2023-01-17T17:40:29.392120Z","revision":1,"vrda_d1_directreport":null,"vrda_d1_population":null,"vrda_d1_impact":null,"cam_widelyknown":null,"cam_exploitation":null,"cam_internetinfrastructure":null,"cam_population":null,"cam_impact":null,"cam_easeofexploitation":null,"cam_attackeraccessrequired":null,"cam_scorecurrent":null,"cam_scorecurrentwidelyknown":null,"cam_scorecurrentwidelyknownexploited":null,"ipprotocol":null,"cvss_accessvector":null,"cvss_accesscomplexity":null,"cvss_authentication":null,"cvss_confidentialityimpact":null,"cvss_integrityimpact":null,"cvss_availabilityimpact":null,"cvss_exploitablity":null,"cvss_remediationlevel":null,"cvss_reportconfidence":null,"cvss_collateraldamagepotential":null,"cvss_targetdistribution":null,"cvss_securityrequirementscr":null,"cvss_securityrequirementsir":null,"cvss_securityrequirementsar":null,"cvss_basescore":null,"cvss_basevector":null,"cvss_temporalscore":null,"cvss_environmentalscore":null,"cvss_environmentalvector":null,"metric":null,"vulnote":79}