Difference between revisions of "Runsafe:Microsoft Windows File Sharing Risks"

From WolfTech
Jump to navigation Jump to search
 
Line 21: Line 21:
  
 
<p><b>Windows computers allow people and programs (or criminals and viruses) that can guess the Administrator password to take full control of your computer over the network. This happens quite often. Use the procedures below to set a strong Administrator password.</b></p>
 
<p><b>Windows computers allow people and programs (or criminals and viruses) that can guess the Administrator password to take full control of your computer over the network. This happens quite often. Use the procedures below to set a strong Administrator password.</b></p>
<li><b>On Windows NT systems: </b>
+
*<b>On Windows NT systems: </b>
<ul>
+
**Click Start-&gt;Programs-&gt;Administrative Tools-&gt;User Manager.</li>
<li>Click Start-&gt;Programs-&gt;Administrative Tools-&gt;User Manager.</li>
+
**Double-click the <b>Administrator</b> entry and set a <b>strong</b> password.
<li>Double-click the <b>Administrator</b> entry and set a <b>strong</b> password.</li>
+
**<b>Do not forget the password.</b>
<li><b>Do not forget the password.</b></li>
+
*<b>On Windows 2000 systems: </b>
</ul>
+
**Right-click on the <b>My Computer</b> icon on your desktop and select <b>Manage</b>
</li>
+
**Double-click on <b>Local Users and Groups</b>
<li><b>On Windows 2000 systems: </b>
+
**Double-click on the <b>Users</b> folder.
<ul>
+
**Right-click on the <b>Administrator</b> icon and click once on <b>Set Password</b>.
<li>Right-click on the <b>My Computer</b> icon on your desktop and select
+
**Set a strong password.<b>&nbsp;Do not forget the password.</b>
<b>Manage</b></li>
+
**Click OK
<li>Double-click on <b>Local Users and Groups</b></li>
+
*<b>On Windows XP systems:</b> To change the Windows XP Administrator account password if you're logged in as Administrator:
<li>Double-click on the <b>Users</b> folder.</li>
+
**Hit the Ctrl Delete and Alt keys simultaneously.
<li>Right-click on the <b>Administrator</b> icon and click once on <b>Set Password</b>.</li>
+
**Click Change Password
<li>Set a strong password.<b>&nbsp;Do not forget the password.</b></li>
+
**Type Administrator into the user box.
<li>Click OK</li>
+
**Type in a new strong password twice. <b>Do not forget the password</b>.  
</ul>
+
**Click OK.
</li>
+
 
<li><b>On Windows XP systems:</b> To change the Windows XP Administrator account password if you're logged in as Administrator:
+
To reset the Windows XP Administrator password if you're logged in with another account with administrative privileges:
<ul>
+
*Right-click on the <b>My Computer</b> icon on your desktop and select <b>Manage</b>
<li>Hit the Ctrl Delete and Alt keys simultaneously.</li>
+
*Double-click on <b>Local Users and Groups</b>
<li>Click Change Password</li>
+
*Double-click on the <b>Users</b> folder.
<li>Type Administrator into the user box.</li>
+
*Right-click on the <b>Administrator</b> icon and click once on <b>Set Password</b>.
<li>Type in a new strong password twice. <b>Do not forget the password</b>. </li>
+
*Set a strong password. <b>Do not forget the password.</b>
<li>Click OK.</li>
+
*Click OK
  
</ul>
 
To reset the Windows XP Administrator password if you're logged in with another account with administrative privileges:<ul>
 
<li>Right-click on the <b>My Computer</b> icon on your desktop and select <b>Manage</b></li>
 
<li>Double-click on <b>Local Users and Groups</b></li>
 
<li>Double-click on the <b>Users</b> folder.</li>
 
<li>Right-click on the <b>Administrator</b> icon and click once on <b>Set Password</b>.</li>
 
<li>Set a strong password. <b>Do not forget the password.</b></li>
 
<li>Click OK</li>
 
</ul>
 
 
When creating new users in Windows XP setup, all users are created with administrative privileges and no password by default. All such accounts will have access to the hidden shares on Windows XP Professional machines (Windows XP Home machines don't enable the hidden shares by default). On either system, you must set a password for each user. See [http://support.microsoft.com/support/kb/articles/Q293/8/34.ASP Microsoft KnowledgeBase article Q293834].
 
When creating new users in Windows XP setup, all users are created with administrative privileges and no password by default. All such accounts will have access to the hidden shares on Windows XP Professional machines (Windows XP Home machines don't enable the hidden shares by default). On either system, you must set a password for each user. See [http://support.microsoft.com/support/kb/articles/Q293/8/34.ASP Microsoft KnowledgeBase article Q293834].
 
<p>If you share the hard drive temporarily for backup purposes, assign a password to it. You'd be surprised how often the JMU network gets scanned by people looking for vulnerable computers. Don't forget to unshare it when you are finished with the backup.</p>
 
<p>If you share the hard drive temporarily for backup purposes, assign a password to it. You'd be surprised how often the JMU network gets scanned by people looking for vulnerable computers. Don't forget to unshare it when you are finished with the backup.</p>
 
<p>If you <b>don't</b> want to allow other computers to access your folders, disable file sharing completely by:</p>
 
<p>If you <b>don't</b> want to allow other computers to access your folders, disable file sharing completely by:</p>
<ul>
+
 
<li>Windows 95,98,ME:
+
*Windows 95,98,ME:
<ul>
+
**Click <i>Start-&gt;Settings-&gt;Control Panel</i>
<li>Click <i>Start-&gt;Settings-&gt;Control Panel</i></li>
+
**Double-click the <i>Network</i> control panel
<li>Double-click the <i>Network</i> control panel</li>
+
**Click <i>File and Print Sharing</i>
<li>Click <i>File and Print Sharing</i></li>
+
**Uncheck the box labeled &quot;<i>I want to be able to give others access to my files</i>&quot;
<li>Uncheck the box labeled &quot;<i>I want to be able to give others access to my files</i>&quot;</li>
+
**Click <i>OK, OK</i>.
<li>Click <i>OK, OK</i>.</li>
+
**Reboot your computer.
<li>Reboot your computer.</li>
+
*Windows NT4
</ul>
+
**Click <i>Start-&gt;Settings-&gt;Control Panel</i>
</li>
+
**Double-click the <i>Network</i> control panel
<li>Windows NT4
+
**Click the <i>Bindings</i> tab
<ul>
+
**Highlight <i>Server</i>
<li>Click <i>Start-&gt;Settings-&gt;Control Panel</i></li>
+
**Click <i>Disable</i>
<li>Double-click the <i>Network</i> control panel</li>
+
**Click <i>OK</i>
<li>Click the <i>Bindings</i> tab</li>
+
*Windows 2000/XP
<li>Highlight <i>Server</i></li>
+
**Click <i>Start-&gt;Settings-&gt;Control Panel</i>
<li>Click <i>Disable</i></li>
+
**Double-click &quot;<i>Network and Dial-up Connections</i>&quot;
<li>Click <i>OK</i></li>
+
**Right-click &quot;<i>Local Area Connections</i>&quot; and select <i>Properties</i>
</ul>
+
**Uncheck &quot;<i>File and Printer Sharing for Microsoft Networks</i>&quot;
</li>
+
 
<li>Windows 2000/XP
 
<ul>
 
<li>Click <i>Start-&gt;Settings-&gt;Control Panel</i></li>
 
<li>Double-click &quot;<i>Network and Dial-up Connections</i>&quot;</li>
 
<li>Right-click &quot;<i>Local Area Connections</i>&quot; and select <i>Properties</i></li>
 
<li>Uncheck &quot;<i>File and Printer Sharing for Microsoft Networks</i>&quot;</li>
 
</ul>
 
</li>
 
</ul>
 
 
<p>Properly configured firewalls block the doors file sharing services leave open on your computer but its best not to leave the doors open in the first place. Disable file sharing if you're not going to use it.</p>
 
<p>Properly configured firewalls block the doors file sharing services leave open on your computer but its best not to leave the doors open in the first place. Disable file sharing if you're not going to use it.</p>
 
<p><b>If you want to allow others to access folders on your computer it is best to create a new folder specifically for that purpose.</b></p>
 
<p><b>If you want to allow others to access folders on your computer it is best to create a new folder specifically for that purpose.</b></p>
 
<p>To get a complete list of all folders you have shared:</p>
 
<p>To get a complete list of all folders you have shared:</p>
<ol>
+
#Open an MS-DOS window.
<li>Open an MS-DOS window.</li>
+
#Type <i>net view</i>
<li>Type <i>net view</i></li>
+
#Servers running on your computer will be listed under &quot;Server Name&quot;. If nothing is listed, Microsoft File Sharing is Disabled. If something is listed, take each server name and type <i>net view \\servername</i>. A list of shares will be displayed.
<li>Servers running on your computer will be listed under &quot;Server Name&quot;. If nothing is listed, Microsoft File Sharing is Disabled. If something is listed, take each server name and type <i>net view \\servername</i>. A list of shares will be displayed.</li>
 
</ol>
 
  
 
==Mistake #2 - Letting Anonymous People (including criminals) and Programs (including viruses) Write to Your Computer==
 
==Mistake #2 - Letting Anonymous People (including criminals) and Programs (including viruses) Write to Your Computer==

Latest revision as of 12:43, 16 March 2006

Microsoft Windows systems provide easy to use file sharing functionality. You can easily make any folder on your computer available to the entire JMU community or only to those who know a secret password. It is important to realize, however, that misuse of this functionality can result in a total compromise of your computer, everything stored on it, everything typed into it, and everything accessed from it (email, PeopleSoft and Ecampus accounts, network drives, outside accounts, etc.).

If you were directed here by a warning placed on your desktop (an icon with the name <a href="sharealert.html">JMU SECURITY ALERT - READ THIS ASAP</a>), your computer is a sitting duck for any virus or hacker that comes along. In fact, anyone at JMU is able to read, write, modify, or delete anything on your computer. If its a home computer in this condition, anyone in the world can do the same.

There are three common mistakes people make with Microsoft file sharing.

  • Mistake #1: Share an entire hard drive (or letting lack of Administrator password do it for you!).
  • Mistake #2: Letting Anonymous People (including criminals) and Programs (including viruses) Write to Your Computer
  • Mistake #3: Sharing Folders Containing Personal Data with the World


Mistake #1 Share an entire hard drive either on purpose or because you don't have an Administrator password.

If your hard drive (e.g. C:) is shared with read/write permissions, it has the same effect as letting everyone borrow your computer, copy your keystrokes, and use your passwords and accounts. People are free to load and run software of their choice on your computer. Even if shared read-only, there are areas that can be abused. For example, the My Documents folder and password files are available to anyone who cares to look at them. It is extremely important that you guard against sharing your entire hard drive.

Windows computers allow people and programs (or criminals and viruses) that can guess the Administrator password to take full control of your computer over the network. This happens quite often. Use the procedures below to set a strong Administrator password.

  • On Windows NT systems:
    • Click Start->Programs->Administrative Tools->User Manager.
    • Double-click the Administrator entry and set a strong password.
    • Do not forget the password.
  • On Windows 2000 systems:
    • Right-click on the My Computer icon on your desktop and select Manage
    • Double-click on Local Users and Groups
    • Double-click on the Users folder.
    • Right-click on the Administrator icon and click once on Set Password.
    • Set a strong password. Do not forget the password.
    • Click OK
  • On Windows XP systems: To change the Windows XP Administrator account password if you're logged in as Administrator:
    • Hit the Ctrl Delete and Alt keys simultaneously.
    • Click Change Password
    • Type Administrator into the user box.
    • Type in a new strong password twice. Do not forget the password.
    • Click OK.

To reset the Windows XP Administrator password if you're logged in with another account with administrative privileges:

  • Right-click on the My Computer icon on your desktop and select Manage
  • Double-click on Local Users and Groups
  • Double-click on the Users folder.
  • Right-click on the Administrator icon and click once on Set Password.
  • Set a strong password. Do not forget the password.
  • Click OK

When creating new users in Windows XP setup, all users are created with administrative privileges and no password by default. All such accounts will have access to the hidden shares on Windows XP Professional machines (Windows XP Home machines don't enable the hidden shares by default). On either system, you must set a password for each user. See Microsoft KnowledgeBase article Q293834.

If you share the hard drive temporarily for backup purposes, assign a password to it. You'd be surprised how often the JMU network gets scanned by people looking for vulnerable computers. Don't forget to unshare it when you are finished with the backup.

If you don't want to allow other computers to access your folders, disable file sharing completely by:

  • Windows 95,98,ME:
    • Click Start->Settings->Control Panel
    • Double-click the Network control panel
    • Click File and Print Sharing
    • Uncheck the box labeled "I want to be able to give others access to my files"
    • Click OK, OK.
    • Reboot your computer.
  • Windows NT4
    • Click Start->Settings->Control Panel
    • Double-click the Network control panel
    • Click the Bindings tab
    • Highlight Server
    • Click Disable
    • Click OK
  • Windows 2000/XP
    • Click Start->Settings->Control Panel
    • Double-click "Network and Dial-up Connections"
    • Right-click "Local Area Connections" and select Properties
    • Uncheck "File and Printer Sharing for Microsoft Networks"

Properly configured firewalls block the doors file sharing services leave open on your computer but its best not to leave the doors open in the first place. Disable file sharing if you're not going to use it.

If you want to allow others to access folders on your computer it is best to create a new folder specifically for that purpose.

To get a complete list of all folders you have shared:

  1. Open an MS-DOS window.
  2. Type net view
  3. Servers running on your computer will be listed under "Server Name". If nothing is listed, Microsoft File Sharing is Disabled. If something is listed, take each server name and type net view \\servername. A list of shares will be displayed.

Mistake #2 - Letting Anonymous People (including criminals) and Programs (including viruses) Write to Your Computer

If you don't control write access to your shared folder, people may store inappropriate or illegal materials on your computer which may get you in trouble. Anonymous people may maliciously change or delete someone else's content that resides in the share. You may be blamed by people that use your share for the malicious content or modifications. Viruses use such open shares to spread themselves. Finally, people may simply fill up your hard drive. 

You can prevent this by doing one or both of the following:

  • Changing the folder's share properties so the folder is read-only.
  • Changing the folder's share properties so a password is necessary to access it. Be sure to choose a strong password!

Microsoft ships Windows XP so its Shared Documents folder is open to the world including viruses and criminals. To disable or configure this share:

  • Double-click the My Computer icon
  • Right-click the Shared Documents icon and select Sharing and Security
  • Click the Sharing tab and set options as you desire

 

Mistake #3 - Sharing Folders Containing Personal Data with the World

Some folks properly protect a share with read-only permissions but make the mistake of sharing the wrong folder or putting sensitive information in it. Shared folders are easily discovered on the network and unless they are password protected, anyone can read what they contain. Sharing a folder like My Documents will expose personal data. If you do it on the NCSU network, it will be shared with all of NCSU. If you do it at home, it will be shared with the entire Internet.

It is best to create specific shared folders for each different use.