LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2015, 06:55 AM   #1
Boobesh
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
sudo vulnerability issues on switch


Hi,

I am working in a networking company where they run their operating system on top of LINUX. User can invoke python script on switch prompt and then from python script by running "sudo gdb" they can get root access as shown below.

switch# python
Copyright (c) 2001-2012 Python Software Foundation; All Rights Reserved

switch# >>> from ctypes import CDLL
switch# >>> libc = CDLL('libc.so.6')
switch# >>> libc.execl('/bin/bash','/bin/bash',None)
bash-3.2$ export SHELL=/bin/bash
bash-3.2$ sudo gdb -q
(gdb) shell
bash-3.2# id
rootuid=0(root) gid=0(root) groups=0(root)
bash-3.2#

This is been posted as vulnerability issue where any user with any role can get access to root by running some commands using sudo.

Could you please tell how to prevent any one from running sudo?

May i know what is the change i need to do in sudo configuration file to achieve this?

Your help is appreciated.

Thanks,
Boobesh
 
Old 08-17-2015, 07:21 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
I think that is not a security hole of the system, but misconfiguration by the admin. Please check the /etc/sudoers file (and see man sudoers)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vulnerability scanning using NMAP on CVE-2014-0322 vulnerability,check vulnerable meeiyoke Linux - Security 2 06-06-2014 05:09 PM
vulnerability scanning using NMAP on CVE-2014-0322 vulnerability,check vulnerable . meeiyoke Linux - Newbie 1 06-06-2014 12:14 PM
Security vulnerability in sudo allows privilege escalation fskmh Slackware 1 03-05-2013 01:03 PM
Sudo format string vulnerability teckk Linux - Security 1 02-01-2012 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration