{"vuid":"VU#142546","idnumber":"142546","name":"SMA Technologies OpCon UNIX agent adds the same SSH key to all installations","keywords":null,"overview":"### Overview\r\nSMA Technologies OpCon UNIX agent adds the same SSH key on every installation and subsequent updates. An attacker with access to the private key can gain root access on affected systems.\r\n\r\n### Description\r\nDuring OpCon UNIX agent installation and updates, an SSH public key is added to the root account's `authorized_keys` file. The corresponding private key titled `sma_id_rsa` is included with the installation files and is not encrypted with a passphrase. Removal of the OpCon software does not remove the entry from the `authorized_keys` file.\r\n\r\n### Impact\r\nAn attacker with access to the private key included with the OpCon UNIX agent installation files can gain SSH access as root on affected systems.\r\n\r\n### Solution\r\n#### Remove private key\r\nSMA Technologies has [provided a tool](https://smatechnologies.hosted-by-files.com/SMAUnixLSAMVulnerabilityFix/) to address the issue.\r\n\r\nAnother option is to manually remove the SSH key entry from root's `authorized_keys` file. The key can be identified by its fingerprints:\r\n\r\n`SHA256:qbgTVNkLGI5G7erZqDhte63Vpw+9g88jYCxMuh8cLeg`\r\n`MD5:f1:6c:c9:ba:21:66:ce:7c:5a:55:e2:4d:07:72:cc:31`\r\n\r\nDepending on the shell and operating system there are [various ways](https://serverfault.com/questions/413231/how-to-get-all-fingerprints-for-ssh-authorized-keys2-file) to generate fingerprints for public keys listed in `authorized_keys`.\r\n\r\n#### Upgrade\r\nSMA Technologies [reports](https://kb.cert.org/vuls/id/142546#SMA%20Technlogies) that \"We have updated our UNIX agent version 21.2 package to no longer include (and also remove) any existing vulnerability.\"\r\n\r\n### Acknowledgements\r\nThanks to Nick Holland at Holland Consulting for researching and reporting this vulnerability.\r\n\r\nThis document was written by Kevin Stephens.","clean_desc":null,"impact":null,"resolution":null,"workarounds":null,"sysaffected":null,"thanks":null,"author":null,"public":["https://smatechnologies.hosted-by-files.com/SMAUnixLSAMVulnerabilityFix/","https://serverfault.com/questions/413231/how-to-get-all-fingerprints-for-ssh-authorized-keys2-file"],"cveids":["CVE-2022-2154"],"certadvisory":null,"uscerttechnicalalert":null,"datecreated":"2022-06-21T16:38:18.426553Z","publicdate":"2022-06-21T16:38:18.075218Z","datefirstpublished":"2022-06-21T16:38:18.496148Z","dateupdated":"2022-06-21T16:38:18.075208Z","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":70}