SharePoint Security
Advanced SharePoint Security Tips and Tools
22 Feb 2012 – OWASP L.A. 2012 – Los Angeles, CA
Presented by:
Francis Brown
Stach & Liu, LLC
www.stachliu.com
Agenda
2
• Brief Intro to SharePoint
• Overview of Major Components
• SharePoint Security
• Security Tips and Tools
O V E R V I E W
Background
3
G E T T I N G U P T O S P E E D
Background
4
MS SharePoint Products & Technologies
• Windows SharePoint
Services (WSS)
• Office SharePoint Server
2007/2010 (MOSS)
• SharePoint Designer
2007/2010 (SPD)
Core Components
5
MS SharePoint Products & Technologies
Core Components
6
MS SharePoint Products & Technologies
Core Components
7
MS SharePoint Products & Technologies
Centralized Portal
8
MS SharePoint Products & Technologies
9
Site Hierarchy
Intro to SharePoint
10
SharePoint Site Hierarchy
Intro to SharePoint
Base Site URLs:
• http://learnsouth/
• http://learnsouth/Media/
• http://learnsouth/Revisions/
• http://learnsouth/Schools/
• http://learnsouth/Schools/SchoolA/
• http://learnsouth/Schools/SchoolB/
• http://learnsouth/Schools/SchoolC/
11
Site Structure
Intro to SharePoint
12
Site Navigation
Intro to SharePoint
Security Tips
13
W H A T Y O U S H O U L D K N O W
WikiLeaks and SharePoint
R I S K O F E X P O S U R E
14
• Wget scripts targeting SharePoint downloads
• 250,000 government cables sent to WikiLeaks
Security Tips
15
S H A R E P O I N T S E C U R I T Y
# Security Tip
1 Know your external exposure…
2 Beware of normal users with excessive access…
3 Spot check user permissions and inheritance…
4 Beware third-party plugins/code…BUT not too much…
5 Backup every which way from Sunday…
…
Security Tip #1
16
K N O W Y O U R E X T E R N A L E X P O S U R E
External Exposure
F I N D I N G H O L E S
17
1. “Google Hack yourself”
1. Search Google for exposed SharePoint admin pages
2. E.g. inurl:"/_catalogs/wt/“
3. NEW: SharePoint Google Regexs for S&L SearchDiggity – 121 queries
4. Coming Soon: SharePoint Bing Dictionary
5. SHODAN searching for SharePoint servers
6. SharePoint Hacking Alerts
2. SharePoint URL Brute-forcing
1. Forceful browse to common SharePoint extensions to test access
2. NEW: Tool to bruteforce SharePoint URLs – 101 known extensions
3. Nmap for other SharePoint administrative apps
1. E.g. Central Administration, Shared Service Providers (SSP)
External Exposure
S H A R E P O I N T A D M I N W E B A P P S
18
External Exposure
G O O G L E H A C K I N G S H A R E P O I N T
19
External Exposure
G O O G L E H A C K I N G S H A R E P O I N T
20
External Exposure
G O O G L E H A C K I N G S H A R E P O I N T
21
External Exposure
B I N G H A C K I N G S H A R E P O I N T
22
External Exposure
S H O D A N F O R S H A R E P O I N T
23
External Exposure
S H A R E P O I N T H A C K I N G A L E R T S
24
DEMO
S H A R E P O I N T H A C K I N G T O O L S
25
External Exposure
S H A R E P O I N T U R L B R U T E F O R C I N G
26
Security Tip #2
27
B E W A R E U S E R S W I T H E X C E S S I V E A C C E S S
Excessive User Access
M O R E T H A N Y O U B A R G A I N E D F O R . . .
28
• Web Services examples
• Admin.asmx
• Permissions.asmx
• User Administration examples
• “People and Groups”
• ”Add Users”
• “PeoplePicker”
DEMO
C O N T I N U E D S H A R E P O I N T H A C K I N G
29
Excessive User Access
S H A R E P O I N T W E B S E R V I C E S
30
Security Tip #3
31
C H E C K P E R M I S S I O N S A N D I N H E R I T A N C E
User Permissions
32
S E C U R I T Y T I P S
User Permissions
33
S E C U R I T Y T I P S
User Permissions
34
S E C U R I T Y T I P S
Security Tools
35
U S E R P E R M I S S I O N S
36
Security Tools
U S E R P E R M I S S I O N S
37
Security Tools
U S E R P E R M I S S I O N S
38
Security Tools
U S E R P E R M I S S I O N S
39
Security Tools
U S E R P E R M I S S I O N S
Security Tip #4
40
B E W A R E T H I R D - P A R T Y C O D E… N O T T O O M U C H
Third-Party Plugins
N E C E S S A R Y E V I L
41
• SharePoint without third-party plugins is
like an iPhone with no apps
• Solutions, Features
• Web Parts, Templates
• If too strict, people will circumvent you
• Leads to rogue SharePoint deployments
Detect Rogue SharePoint
R O G U E D E P L O Y M E N T S
42
Quest Software - Server Administrator for SharePoint
Detect Rogue SharePoint
R O G U E D E P L O Y M E N T S
43
McAfee - Network Discovery for Microsoft SharePoint
Third-Party Plugins
S O L U T I O N S
44
Third-Party Plugins
S O L U T I O N S
45
Third-Party Plugins
F E A T U R E S
46
Third-Party Plugins
F E A T U R E S
47
Third-Party Plugins
F U T U R E S E C U R I T Y
48
• SharePoint 2010 has sandboxed solutions
• Minimize risk of running untrusted third-party plugins
Third-Party Plugins
S A N D B O X E D S O L U T I O N S
49
Security Tip #5
50
B A C K U P E V E R Y W H I C H
W A Y F R O MS U N D A Y
Backups
M A N Y M E T H O D S … M O S T T E R R I B L E
51
1. Microsoft System Center: Data Protection Manager
2. Windows 2003/2008 Server backups
3. Stsadm.exe cmdline tool backups
4. Central Administration v3 backups
5. SharePoint Designer backups
6. Site and List template backups
7. Raw MS SQL database backups
Backups
S H A R E P O I N T D E S I G N E R
52
Backups
S T S A D M / C E N T R A L A D M I N I S T R A T I O N
53
Backups
S I T E A N D L I S T T E M P L A T E S
54
Backups
S I T E A N D L I S T T E M P L A T E S
55
Backups
R A W S Q L D A T A B A S E S
56
Questions?
Ask us something
We’ll try to answer it.
For more info:
Email: contact@stachliu.com
Project: diggity@stachliu.com
Stach  Liu, LLC
www.stachliu.com
Thank You
58
Stach  Liu SharePoint Hacking Diggity Project info:
http://www.stachliu.com/index.php/resources/tools/sharepoint-hacking-diggity-project/

OWASP LA – SharePoint Hacking – 22Feb2012 – Slides.PDF