Nipper


Juniper NetScreen Firewall Security Report

of the

netscreen1 Juniper NetScreen Firewall


Contents

1. About This Report
    1.1. Organisation
    1.2. Conventions
2. Security Audit
    2.1. Introduction
    2.2. Policy Lists
    2.3. Administrative HTTP Redirect
    2.4. Conclusions
3. Device Configuration
    3.1. Introduction
    3.2. General
    3.3. Services
    3.4. Administrative Settings
    3.5. Authentication Servers
    3.6. Simple Network Management Protocol
    3.7. Interfaces
    3.8. Security Zones
    3.9. Policy Lists
    3.10. IP Address Name Mappings
4. Appendix
    4.1. Abbreviations
    4.2. Common Ports
    4.3. Logging Severity Levels
    4.4. Time Zones
    4.5. Nipper Details


1. About This Report

1.1. Organisation

This Juniper NetScreen Firewall netscreen1 report was produced by Nipper on Saturday 22 March 2008. The report contains the following sections:
 

1.2. Conventions

This report makes use of the text conventions outlined in Table 1.
 
Table 1: Report text conventions
Convention Description
command
This text style represents the Juniper NetScreen Firewall command text that has to be entered literally.
string
This text style represents the Juniper NetScreen Firewall command text that the you have to enter.
[ ]
Used to enclose a Juniper NetScreen Firewall command option.
{ }
Used to enclose a Juniper NetScreen Firewall command requirement.
|
Divides command option or requirement choices.
 

2. Security Audit

2.1. Introduction

Nipper performed a security audit of the Juniper NetScreen Firewall netscreen1 on Saturday 22 March 2008. This section details the findings of the security audit together with the impact and recommendations.
 

2.2. Policy Lists

Observation: Policy lists are used to determined which network traffic is allowed and which is dropped between different zones (interzone), between interfaces in the same zone (intrazone) and the global zone. If a policy has not been configured, any network traffic is blocked by default.
 
Nipper identified five insecure policy list rules, these are listed in Table 2.
 
Table 2: Insecure policy list rules
From Zone To Zone Global Zone ID Description
TrustUntrustNo0Allows access from any source to any address.
Allows access from any address to any destination.
Allows access from any address to any destination service.
TrustUntrustNoN/APolicy list does not end with a deny all and log.
UntrustTrustNo1Does not log denied access.
 
Impact: If policy lists are not sufficiently restrictive, an attacker may be able to access services or network devices that should not be accessible. Furthermore, an attacker who had compromised a device could install a backdoor which could listen on a network port that was not filtered.
 
Ease: N/A
 
Recommendation: Nipper recommends that the policy lists be reviewed and, where possible, modified to ensure that: However, in certain circumstances, such as a public web server, a more relaxed configuration may be required to allow any host to access specific hosts and services.
 

2.3. Administrative HTTP Redirect

Observation: The HTTP redirection setting redirects HTTP administrative traffic to the security device to HTTPS (on port 443 by default). This ensures that all web-based administration is performed using the secure HTTPS protocol.
 
Nipper determined that the ScreenOS device netscreen1 was not configured with the HTTP redirect setting. However, it should be noted that the HTTP redirect setting is enabled by default on ScreenOS versions 5.1.0 or latter.
 
Impact: An attacker who was able to monitor network traffic could capture authentication credentials for the device netscreen1.
 
Ease: Network packet and password sniffing tools are widely available on the Internet. Once authentication credentials have been captured, an attacker with access to the devices management services could use them to gain access.
 
Recommendation: Nipper recommends the HTTP redirect administration setting be configured to force access to the device using the cryptographically secure HTTPS protocol. The following command will set the administrative HTTP redirect setting:
 
set admin http redirect

 

2.4. Conclusions

Nipper performed a security audit of the Juniper NetScreen Firewall device netscreen1 on Saturday 22 March 2008 and identified two security-related issues. Nipper determined that:
 

3. Device Configuration

3.1. Introduction

This section details the configuration settings of the Juniper NetScreen Firewall device netscreen1.
 

3.2. General

Table 3: General device settings
Description Setting
Hostnamenetscreen1
Default Firewall PolicyDeny
 

3.3. Services

Table 4: Device services
Service Status
SSHDisabled
 

3.4. Administrative Settings

Table 5: Administrative settings
Description Setting
Administrative Usernetscreen
Encrypted Administrative PasswordnKVUM2rwMUzPcrkG5sWIHdCtqkAibn
Admin Password LengthAny Length (upto 31 characters)
Admin Login Attempts3
Admin PrivilagesDefault
Admin Management IP192.168.0.0 255.255.255.0
Console Only AdministrationNo
Authentication ServerLocal
Administration Timeout10 mins
HTTP RedirectionUnconfigured
Mail AlertsYes
Configuration FormatDOS
 

3.5. Authentication Servers

Table 6: Authentication servers
ID Server Name Type Server Backup(s) Timeout Forced Timeout Interface Secret / Key
0LocalBuilt-inLocal10 minsNone
 

3.6. Simple Network Management Protocol

Table 7: SNMP configuration
Description Setting
System Namenetscreen1
SNMP Port161
SNMP Trap Port162
Authentication TrapsDisabled
 

3.7. Interfaces

Table 8: Interfaces
Interface Active IP Address Zone Ident Reset MTrace NS Management Ping SNMP SSH SSL Telnet Web
trustYes192.168.0.40/24TrustOnOnOnOnOnOnOnOnOn
untrustYes10.20.30.254/24UntrustOffOffOffOffOffOffOffOffOff
vlan1Yes10.20.40.254/24OffOffOffOffOffOffOffOffOff
 

3.8. Security Zones

Juniper NetScreen Firewall security zones enable the sectioning of a network in order to apply network filtering and other security options. Juniper NetScreen Firewall must have at least two security zones configured in order to facilitate filtering between network areas and each security zone will have at least one network interface bound to it, the global zone will use mapped or virtual IP.
 
Table 9: Security zones
Name ID VLAN Block Policy Tunnel Virtual Router
Trust--NoNoneNonetrust-vr
Untrust--YesNoneNonetrust-vr
MGT--YesNoneNoneNone
V1-Untrust--NoNoneNoneNone
 
Table 10: Trust zone security settings
Description Setting
Send TCP resets for nonsync packetsYes
Relay DHCP requests to other zonesYes
Reassemble HTTP and FTP fragmented packets for ALGNo
Generate attack alarms but do not blockNo
Apply the security settings to tunnelsN/A
Drop fragmented packetsNo
Drop HTTP traffic containing ActiveXNo
Drop HTTP traffic containing JavaNo
Drop HTTP traffic containing executablesNo
Drop HTTP traffic containing ZIP filesNo
Drop HTTP traffic containing malformed URLNo
Drop packets with illegal flagsNo
Drop ICMP traffic floodNo
Drop ICMP traffic with fragments flagNo
Drop ICMP frames larger than 1024No
Drop packets with invalid IP optionsNo
Drop packets with IP source route optionNo
Drop packets with no or malformed flagsNo
Drop IP frames with a protocol number greater than 135No
Drop ping of death attacksNo
Prevent spoofing attacksNo
Prevent IP sweep attacksNo
Prevent port scans after 10 portsPer 5000 microseconds
Prevent Land attacksNo
Prevent SYN ACK ACK attacksNo
Prevent SYN flood attacksNo
Detect SYN FIN attacksNo
Prevent SYN frag attacksNo
Prevent tear drop attacksNo
Prevent UDP floodsNo
Log packets with a loose IP source routeNo
Log packets with the record route optionNo
Log packets with the security optionNo
Log packets with the stream optionNo
Log packets with the strict source optionNo
Log packets with the timestamp optionNo
Limit concurrent sessions128 sessions
Detect and modify NetBIOS attack packetsNo
 
Table 11: Untrust zone security settings
Description Setting
Send TCP resets for nonsync packetsNo
Relay DHCP requests to other zonesYes
Reassemble HTTP and FTP fragmented packets for ALGNo
Generate attack alarms but do not blockNo
Apply the security settings to tunnelsN/A
Drop fragmented packetsNo
Drop HTTP traffic containing ActiveXNo
Drop HTTP traffic containing JavaNo
Drop HTTP traffic containing executablesNo
Drop HTTP traffic containing ZIP filesNo
Drop HTTP traffic containing malformed URLNo
Drop packets with illegal flagsNo
Drop ICMP traffic floodNo
Drop ICMP traffic with fragments flagNo
Drop ICMP frames larger than 1024No
Drop packets with invalid IP optionsNo
Drop packets with IP source route optionYes
Drop packets with no or malformed flagsNo
Drop IP frames with a protocol number greater than 135No
Drop ping of death attacksYes
Prevent spoofing attacksNo
Prevent IP sweep attacksNo
Prevent port scans after 10 portsPer 5000 microseconds
Prevent Land attacksYes
Prevent SYN ACK ACK attacksNo
Prevent SYN flood attacksYes
Detect SYN FIN attacksNo
Prevent SYN frag attacksNo
Prevent tear drop attacksYes
Prevent UDP floodsNo
Log packets with a loose IP source routeNo
Log packets with the record route optionNo
Log packets with the security optionNo
Log packets with the stream optionNo
Log packets with the strict source optionNo
Log packets with the timestamp optionNo
Limit concurrent sessions128 sessions
Detect and modify NetBIOS attack packetsNo
 
Table 12: MGT zone security settings
Description Setting
Send TCP resets for nonsync packetsYes
Relay DHCP requests to other zonesYes
Reassemble HTTP and FTP fragmented packets for ALGNo
Generate attack alarms but do not blockNo
Apply the security settings to tunnelsN/A
Drop fragmented packetsNo
Drop HTTP traffic containing ActiveXNo
Drop HTTP traffic containing JavaNo
Drop HTTP traffic containing executablesNo
Drop HTTP traffic containing ZIP filesNo
Drop HTTP traffic containing malformed URLNo
Drop packets with illegal flagsNo
Drop ICMP traffic floodNo
Drop ICMP traffic with fragments flagNo
Drop ICMP frames larger than 1024No
Drop packets with invalid IP optionsNo
Drop packets with IP source route optionNo
Drop packets with no or malformed flagsNo
Drop IP frames with a protocol number greater than 135No
Drop ping of death attacksNo
Prevent spoofing attacksNo
Prevent IP sweep attacksNo
Prevent port scans after 10 portsPer 5000 microseconds
Prevent Land attacksNo
Prevent SYN ACK ACK attacksNo
Prevent SYN flood attacksNo
Detect SYN FIN attacksNo
Prevent SYN frag attacksNo
Prevent tear drop attacksNo
Prevent UDP floodsNo
Log packets with a loose IP source routeNo
Log packets with the record route optionNo
Log packets with the security optionNo
Log packets with the stream optionNo
Log packets with the strict source optionNo
Log packets with the timestamp optionNo
Limit concurrent sessions128 sessions
Detect and modify NetBIOS attack packetsNo
 
Table 13: V1-Untrust zone security settings
Description Setting
Send TCP resets for nonsync packetsNo
Relay DHCP requests to other zonesNo
Reassemble HTTP and FTP fragmented packets for ALGNo
Generate attack alarms but do not blockNo
Apply the security settings to tunnelsN/A
Drop fragmented packetsNo
Drop HTTP traffic containing ActiveXNo
Drop HTTP traffic containing JavaNo
Drop HTTP traffic containing executablesNo
Drop HTTP traffic containing ZIP filesNo
Drop HTTP traffic containing malformed URLNo
Drop packets with illegal flagsNo
Drop ICMP traffic floodNo
Drop ICMP traffic with fragments flagNo
Drop ICMP frames larger than 1024No
Drop packets with invalid IP optionsNo
Drop packets with IP source route optionYes
Drop packets with no or malformed flagsNo
Drop IP frames with a protocol number greater than 135No
Drop ping of death attacksYes
Prevent spoofing attacksNo
Prevent IP sweep attacksNo
Prevent port scans after 10 portsPer 5000 microseconds
Prevent Land attacksYes
Prevent SYN ACK ACK attacksNo
Prevent SYN flood attacksYes
Detect SYN FIN attacksNo
Prevent SYN frag attacksNo
Prevent tear drop attacksYes
Prevent UDP floodsNo
Log packets with a loose IP source routeNo
Log packets with the record route optionNo
Log packets with the security optionNo
Log packets with the stream optionNo
Log packets with the strict source optionNo
Log packets with the timestamp optionNo
Limit concurrent sessions128 sessions
Detect and modify NetBIOS attack packetsNo
 

3.9. Policy Lists

A policy is a set of rules that will determine whether traffic between security zones (interzone), between interfaces in the same zone (intrazone) or between addresses in the global zone are permitted or denied. Each interface can be assigned to a different security zone, and multiple interfaces can be assigned to a single security zone.
 
The policy will be processed from the top to the bottom with the first policy rule that applies taking effect. If no rule matches, the default policy will take effect, which is set to deny by default on Juniper NetScreen Firewall. Policies are applied in the following order:
 
Table 14: Zone Trust to zone Untrust policy list
ID Disabled Permission Source Destination Service Log
0NoPermitAnyAnyAnyYes
 
Table 15: Zone Untrust to zone Trust policy list
ID Disabled Permission Source Destination Service Log
1NoDenyAnyAnyAnyNo
 

3.10. IP Address Name Mappings

Table 16: Zone Trust name mappings
Name IP Address / FQDN Net Mask Comment
Local10.0.0.0255.255.255.0
 

4. Appendix

4.1. Abbreviations

ALGApplication Layer Gateway
DHCPDynamic Host Configuration Protocol
DOSDisk Operating System
FTPFile Transfer Protocol
HTTPHyperText Transfer Protocol
HTTPSHyperText Transfer Protocol over SSL
ICMPInternet Control Message Protocol
IPInternet Protocol
SNMPSimple Network Management Protocol
SSHSecure Shell
SSLSecure Sockets Layer
TCPTransmission Control Protocol
 

4.2. Common Ports

Table 17: Common ports
Service Port
FTP21
SSH22
DHCP67
HTTP80
SNMP161
HTTPS443
 

4.3. Logging Severity Levels

Table 18: Logging message severity levels
Level Level Name Description
0EmergenciesSystem is unstable
1AlertsImmediate action is required
2CriticalCritical conditions
3ErrorsError conditions
4WarningsWarning conditions
5NotificationsSignificant conditions
6InformationalInformational messages
7DebuggingDebugging messages
 

4.4. Time Zones

Table 19: Common time zone acronyms
Region Acronym Time Zone UTC Offset
AustraliaCSTCentral Standard Time+9.5 hours
AustraliaESTEastern Standard/Summer Time+10 hours
AustraliaWSTWestern Standard Time+8 hours
EuropeBSTBritish Summer Time+1 hour
EuropeCESTCentral Europe Summer Time+2 hours
EuropeCETCentral Europe Time+1 hour
EuropeEESTEastern Europe Summer Time+3 hours
EuropeESTEastern Europe Time+2 hours
EuropeGMTGreenwich Mean Time
EuropeISTIrish Summer Time+1 hour
EuropeMSKMoscow Time+3 hours
EuropeWESTWestern Europe Summer Time+1 hour
EuropeWETWestern Europe Time+1 hour
USA and CanadaADTAtlantic Daylight Time-3 hours
USA and CanadaAKDTAlaska Standard Daylight Saving Time-8 hours
USA and CanadaAKSTAlaska Standard Time-9 hours
USA and CanadaASTAtlantic Standard Time-4 hours
USA and CanadaCDTCentral Daylight Saving Time-5 hours
USA and CanadaCSTCentral Standard Time-6 hours
USA and CanadaEDTEastern Daylight Time-4 hours
USA and CanadaESTEastern Standard Time-5 hours
USA and CanadaHSTHawaiian Standard Time-10 hours
USA and CanadaMDTMountain Daylight Time-6 hours
USA and CanadaMSTMountain Standard Time-7 hours
USA and CanadaPDTPacific Daylight Time-7 hours
USA and CanadaPSTPacific Standard Time-3 hours
 

4.5. Nipper Details

This report was generated using Nipper version 0.11.5. Nipper is an Open Source tool designed to assist security professionals and network system administrators securely configure network infrastructure devices. The latest version of Nipper can be found at the following URL:
 
http://nipper.sourceforge.net.