LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-27-2010, 08:23 PM   #1
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Rep: Reputation: 0
"samba_symlink_dir_traversal_nasl-#" what is this?


Hi,

I recently started having unusual directories appear on one of my mounted arrays. I did not create them (intentionally) and I have no clue what they are. Google has been of no help.

They all have the this in the name of the folder "samba_symlink_dir_traversal.nasl-<10-digit number>" they all have the same time-stamp for the date modified column (see pic).

What are these folders? Why are they appearing? And how can I make it stop? It doesn't do this on my other mounted arrays and disks.

I recently grew my two attached arrays, this started right after that, but only on one of them. Connection?

Also, it may be relevant, the folders are different today in their modified date(reflecting today's date) and the numbers in the name of the folder are different too.

attached is a screenshot of the folders. Thanks!
Attached Thumbnails
Click image for larger version

Name:	symlink-2.png
Views:	23
Size:	247.3 KB
ID:	4200  
 
Old 07-28-2010, 08:54 PM   #2
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
no one!!?
 
Old 07-28-2010, 09:17 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I don't use Samba, so don't quote me on this.. But since you seem eager for info, try sticking the following:
Code:
samba_symlink_dir_traversal.nasl
into Google. It produces not many hits, but all the hits that are produced point to the same thing, which if I understand what I'm reading, is indicative of a vulnerability in Samba that can be exploited due to an insecure configuration. It allows a user to make symlinks to files that they should not be able to do. The solution (or workaround) is also shown on several of the google hits.

Again - I'm not sure about it - so don't jump up & down just yet! I'm going to ask our 'Security Forum' folks to have a look and give an opinion.
 
Old 07-29-2010, 02:10 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You're right. NASL is the FLA for "Nessus Attack Scripting Language". The Nessus samba_symlink_dir_traversal.nasl plugin and what it tests for is described here, the CVE entry for the vulnerability is here (also see this) and the fix (set "wide links = no" in the [global] section of smb.conf and restart smbd) is described here. If the OP did not test the machine him/herself then system and daemon logs may or may not show who attempted accessed the share during the timeframe leading up to the timestamps of the screenshot the OP posted here.
 
Old 07-29-2010, 01:49 PM   #5
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
Thanks Grapefuit, I did read all that but it made no sense to me because it started only after I grew my array, which is why I thought it might be related to that.

thanks for the help unspawn, I'm changing the smb.conf now. But, what do FLA, CVE, and OP stand for?
 
Old 07-29-2010, 01:55 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
"Common Vulnerabilities & Exposures" = CVE
"OP" Original Post(er) (i.e. you, the person who started the thread, or the first post in a thread.)
"FLA" = ... "Foot Long Acronym" (kidding! I don't know what this one is)
 
Old 07-29-2010, 07:00 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by GrapefruiTgirl View Post
"FLA" = ... "Foot Long Acronym" (kidding! I don't know what this one is)
Close. In this case, it likely means four letter acronym.
 
Old 07-29-2010, 07:44 PM   #8
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
OKIGIN (OK I get it now). Ugh. Acronyms and jargon. Nightmares for a novice.

So, I followed the instructions in one of the links unSpawn posted:

Quote:
Quick FAQ: What do I do !
Set:

wide links = no
in the [global] section of your smb.conf and restart smbd to eliminate this problem.
I made the change and restarted samba.

I deleted all the symlink folders too but as of 30 minutes ago another samba_symlink folder appeared. Any other ideas?
 
Old 07-30-2010, 06:16 AM   #9
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Security and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 07-30-2010, 12:37 PM   #10
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
update: I stopped the samba service yesterday afternoon but this morning (now) there are new "symlink" folders that have appeared. How could that be possible?

Last edited by captainentropy; 07-30-2010 at 02:56 PM.
 
Old 08-02-2010, 01:36 PM   #11
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
still only the two folders but the modified date is current. I still have no idea what else to do. I changed the smb.conf to have wide links = no
 
Old 08-05-2010, 05:32 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
- Temporarily set up smbd to ditch CAP_DAC_OVERRIDE (see 'man 7 capabilities') if your system allows configuring and changing per-process capabilities (GRSecurity, LIDS).
- Upgrade (or alternatively downgrade): http://us1.samba.org/samba/security/CVE-2010-0728.html.
- Do your run Nessus or OpenVAS or any of that type of auditing?
- Who has access (write rights?) to the share?
- Who has access (write rights) to the machine the share is on?
- Who accessed the share during file or directory creation time ('stat /path/to/physical\ directory\ name;')?
- Who accessed the machine the share is on during file or directory creation time?
 
Old 08-09-2010, 07:51 PM   #13
captainentropy
Member
 
Registered: Mar 2010
Location: Berkeley
Distribution: Ubuntu, Mint, CentOS
Posts: 81

Original Poster
Rep: Reputation: 0
Thanks for help unSpawn. Right after my last post I deleted the two folders and there have been no new ones created since. I didn't attempt the two suggestions you made...yet. Should I anyway?

No, I'm not running Nessus or OpenVAS. I don't even know what those are.

There are only two users, both have write access to the machine and share. I'm the only one who uses it really. One other person is setting up a genome browser on the server but the problem started before he began that process.

When the issue arose I was the only one who had accessed the server. There are only three people who even need to access it at any time. But during the time prior to the problem arising I was expanding the arrays so I had them offline. Other than the other guy I mentioned there has been no accessing it by anyone other than me.

I'll be keeping an eye on it of course. Thanks for your help so far!
 
Old 08-14-2010, 02:01 PM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by captainentropy View Post
I didn't attempt the two suggestions you made...yet. Should I anyway?
Upgrading would be good, yes, it may fix more issues.
 
  


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
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:12 AM.

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