Authored by 翟凤史

初次提交

Showing 1000 changed files with 665 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
  1 +#
  2 +# OWASP Enterprise Security API (ESAPI) Properties file -- PRODUCTION Version
  3 +#
  4 +# This file is part of the Open Web Application Security Project (OWASP)
  5 +# Enterprise Security API (ESAPI) project. For details, please see
  6 +# http://www.owasp.org/index.php/ESAPI.
  7 +#
  8 +# Copyright (c) 2008,2009 - The OWASP Foundation
  9 +#
  10 +# DISCUSS: This may cause a major backwards compatibility issue, etc. but
  11 +# from a name space perspective, we probably should have prefaced
  12 +# all the property names with ESAPI or at least OWASP. Otherwise
  13 +# there could be problems is someone loads this properties file into
  14 +# the System properties. We could also put this file into the
  15 +# esapi.jar file (perhaps as a ResourceBundle) and then allow an external
  16 +# ESAPI properties be defined that would overwrite these defaults.
  17 +# That keeps the application's properties relatively simple as usually
  18 +# they will only want to override a few properties. If looks like we
  19 +# already support multiple override levels of this in the
  20 +# DefaultSecurityConfiguration class, but I'm suggesting placing the
  21 +# defaults in the esapi.jar itself. That way, if the jar is signed,
  22 +# we could detect if those properties had been tampered with. (The
  23 +# code to check the jar signatures is pretty simple... maybe 70-90 LOC,
  24 +# but off course there is an execution penalty (similar to the way
  25 +# that the separate sunjce.jar used to be when a class from it was
  26 +# first loaded). Thoughts?
  27 +###############################################################################
  28 +#
  29 +# WARNING: Operating system protection should be used to lock down the .esapi
  30 +# resources directory and all the files inside and all the directories all the
  31 +# way up to the root directory of the file system. Note that if you are using
  32 +# file-based implementations, that some files may need to be read-write as they
  33 +# get updated dynamically.
  34 +#
  35 +# Before using, be sure to update the MasterKey and MasterSalt as described below.
  36 +# N.B.: If you had stored data that you have previously encrypted with ESAPI 1.4,
  37 +# you *must* FIRST decrypt it using ESAPI 1.4 and then (if so desired)
  38 +# re-encrypt it with ESAPI 2.0. If you fail to do this, you will NOT be
  39 +# able to decrypt your data with ESAPI 2.0.
  40 +#
  41 +# YOU HAVE BEEN WARNED!!! More details are in the ESAPI 2.0 Release Notes.
  42 +#
  43 +#===========================================================================
  44 +# ESAPI Configuration
  45 +#
  46 +# If true, then print all the ESAPI properties set here when they are loaded.
  47 +# If false, they are not printed. Useful to reduce output when running JUnit tests.
  48 +# If you need to troubleshoot a properties related problem, turning this on may help.
  49 +# This is 'false' in the src/test/resources/.esapi version. It is 'true' by
  50 +# default for reasons of backward compatibility with earlier ESAPI versions.
  51 +ESAPI.printProperties=true
  52 +
  53 +# ESAPI is designed to be easily extensible. You can use the reference implementation
  54 +# or implement your own providers to take advantage of your enterprise's security
  55 +# infrastructure. The functions in ESAPI are referenced using the ESAPI locator, like:
  56 +#
  57 +# String ciphertext =
  58 +# ESAPI.encryptor().encrypt("Secret message"); // Deprecated in 2.0
  59 +# CipherText cipherText =
  60 +# ESAPI.encryptor().encrypt(new PlainText("Secret message")); // Preferred
  61 +#
  62 +# Below you can specify the classname for the provider that you wish to use in your
  63 +# application. The only requirement is that it implement the appropriate ESAPI interface.
  64 +# This allows you to switch security implementations in the future without rewriting the
  65 +# entire application.
  66 +#
  67 +# ExperimentalAccessController requires ESAPI-AccessControlPolicy.xml in .esapi directory
  68 +ESAPI.AccessControl=org.owasp.esapi.reference.DefaultAccessController
  69 +# FileBasedAuthenticator requires users.txt file in .esapi directory
  70 +ESAPI.Authenticator=org.owasp.esapi.reference.FileBasedAuthenticator
  71 +ESAPI.Encoder=org.owasp.esapi.reference.DefaultEncoder
  72 +ESAPI.Encryptor=org.owasp.esapi.reference.crypto.JavaEncryptor
  73 +
  74 +ESAPI.Executor=org.owasp.esapi.reference.DefaultExecutor
  75 +ESAPI.HTTPUtilities=org.owasp.esapi.reference.DefaultHTTPUtilities
  76 +ESAPI.IntrusionDetector=org.owasp.esapi.reference.DefaultIntrusionDetector
  77 +# Log4JFactory Requires log4j.xml or log4j.properties in classpath - http://www.laliluna.de/log4j-tutorial.html
  78 +ESAPI.Logger=org.owasp.esapi.reference.Log4JLogFactory
  79 +#ESAPI.Logger=org.owasp.esapi.reference.JavaLogFactory
  80 +ESAPI.Randomizer=org.owasp.esapi.reference.DefaultRandomizer
  81 +ESAPI.Validator=org.owasp.esapi.reference.DefaultValidator
  82 +
  83 +#===========================================================================
  84 +# ESAPI Authenticator
  85 +#
  86 +Authenticator.AllowedLoginAttempts=3
  87 +Authenticator.MaxOldPasswordHashes=13
  88 +Authenticator.UsernameParameterName=username
  89 +Authenticator.PasswordParameterName=password
  90 +# RememberTokenDuration (in days)
  91 +Authenticator.RememberTokenDuration=14
  92 +# Session Timeouts (in minutes)
  93 +Authenticator.IdleTimeoutDuration=20
  94 +Authenticator.AbsoluteTimeoutDuration=120
  95 +
  96 +#===========================================================================
  97 +# ESAPI Encoder
  98 +#
  99 +# ESAPI canonicalizes input before validation to prevent bypassing filters with encoded attacks.
  100 +# Failure to canonicalize input is a very common mistake when implementing validation schemes.
  101 +# Canonicalization is automatic when using the ESAPI Validator, but you can also use the
  102 +# following code to canonicalize data.
  103 +#
  104 +# ESAPI.Encoder().canonicalize( "%22hello world"" );
  105 +#
  106 +# Multiple encoding is when a single encoding format is applied multiple times. Allowing
  107 +# multiple encoding is strongly discouraged.
  108 +Encoder.AllowMultipleEncoding=false
  109 +
  110 +# Mixed encoding is when multiple different encoding formats are applied, or when
  111 +# multiple formats are nested. Allowing multiple encoding is strongly discouraged.
  112 +Encoder.AllowMixedEncoding=false
  113 +
  114 +# The default list of codecs to apply when canonicalizing untrusted data. The list should include the codecs
  115 +# for all downstream interpreters or decoders. For example, if the data is likely to end up in a URL, HTML, or
  116 +# inside JavaScript, then the list of codecs below is appropriate. The order of the list is not terribly important.
  117 +Encoder.DefaultCodecList=HTMLEntityCodec,PercentCodec,JavaScriptCodec
  118 +
  119 +
  120 +#===========================================================================
  121 +# ESAPI Encryption
  122 +#
  123 +# The ESAPI Encryptor provides basic cryptographic functions with a simplified API.
  124 +# To get started, generate a new key using java -classpath esapi.jar org.owasp.esapi.reference.crypto.JavaEncryptor
  125 +# There is not currently any support for key rotation, so be careful when changing your key and salt as it
  126 +# will invalidate all signed, encrypted, and hashed data.
  127 +#
  128 +# WARNING: Not all combinations of algorithms and key lengths are supported.
  129 +# If you choose to use a key length greater than 128, you MUST download the
  130 +# unlimited strength policy files and install in the lib directory of your JRE/JDK.
  131 +# See http://java.sun.com/javase/downloads/index.jsp for more information.
  132 +#
  133 +# Backward compatibility with ESAPI Java 1.4 is supported by the two deprecated API
  134 +# methods, Encryptor.encrypt(String) and Encryptor.decrypt(String). However, whenever
  135 +# possible, these methods should be avoided as they use ECB cipher mode, which in almost
  136 +# all circumstances a poor choice because of it's weakness. CBC cipher mode is the default
  137 +# for the new Encryptor encrypt / decrypt methods for ESAPI Java 2.0. In general, you
  138 +# should only use this compatibility setting if you have persistent data encrypted with
  139 +# version 1.4 and even then, you should ONLY set this compatibility mode UNTIL
  140 +# you have decrypted all of your old encrypted data and then re-encrypted it with
  141 +# ESAPI 2.0 using CBC mode. If you have some reason to mix the deprecated 1.4 mode
  142 +# with the new 2.0 methods, make sure that you use the same cipher algorithm for both
  143 +# (256-bit AES was the default for 1.4; 128-bit is the default for 2.0; see below for
  144 +# more details.) Otherwise, you will have to use the new 2.0 encrypt / decrypt methods
  145 +# where you can specify a SecretKey. (Note that if you are using the 256-bit AES,
  146 +# that requires downloading the special jurisdiction policy files mentioned above.)
  147 +#
  148 +# ***** IMPORTANT: Do NOT forget to replace these with your own values! *****
  149 +# To calculate these values, you can run:
  150 +# java -classpath esapi.jar org.owasp.esapi.reference.crypto.JavaEncryptor
  151 +#
  152 +#Encryptor.MasterKey=
  153 +#Encryptor.MasterSalt=
  154 +
  155 +# Provides the default JCE provider that ESAPI will "prefer" for its symmetric
  156 +# encryption and hashing. (That is it will look to this provider first, but it
  157 +# will defer to other providers if the requested algorithm is not implemented
  158 +# by this provider.) If left unset, ESAPI will just use your Java VM's current
  159 +# preferred JCE provider, which is generally set in the file
  160 +# "$JAVA_HOME/jre/lib/security/java.security".
  161 +#
  162 +# The main intent of this is to allow ESAPI symmetric encryption to be
  163 +# used with a FIPS 140-2 compliant crypto-module. For details, see the section
  164 +# "Using ESAPI Symmetric Encryption with FIPS 140-2 Cryptographic Modules" in
  165 +# the ESAPI 2.0 Symmetric Encryption User Guide, at:
  166 +# http://owasp-esapi-java.googlecode.com/svn/trunk/documentation/esapi4java-core-2.0-symmetric-crypto-user-guide.html
  167 +# However, this property also allows you to easily use an alternate JCE provider
  168 +# such as "Bouncy Castle" without having to make changes to "java.security".
  169 +# See Javadoc for SecurityProviderLoader for further details. If you wish to use
  170 +# a provider that is not known to SecurityProviderLoader, you may specify the
  171 +# fully-qualified class name of the JCE provider class that implements
  172 +# java.security.Provider. If the name contains a '.', this is interpreted as
  173 +# a fully-qualified class name that implements java.security.Provider.
  174 +#
  175 +# NOTE: Setting this property has the side-effect of changing it in your application
  176 +# as well, so if you are using JCE in your application directly rather than
  177 +# through ESAPI (you wouldn't do that, would you? ;-), it will change the
  178 +# preferred JCE provider there as well.
  179 +#
  180 +# Default: Keeps the JCE provider set to whatever JVM sets it to.
  181 +Encryptor.PreferredJCEProvider=
  182 +
  183 +# AES is the most widely used and strongest encryption algorithm. This
  184 +# should agree with your Encryptor.CipherTransformation property.
  185 +# By default, ESAPI Java 1.4 uses "PBEWithMD5AndDES" and which is
  186 +# very weak. It is essentially a password-based encryption key, hashed
  187 +# with MD5 around 1K times and then encrypted with the weak DES algorithm
  188 +# (56-bits) using ECB mode and an unspecified padding (it is
  189 +# JCE provider specific, but most likely "NoPadding"). However, 2.0 uses
  190 +# "AES/CBC/PKCSPadding". If you want to change these, change them here.
  191 +# Warning: This property does not control the default reference implementation for
  192 +# ESAPI 2.0 using JavaEncryptor. Also, this property will be dropped
  193 +# in the future.
  194 +# @deprecated
  195 +Encryptor.EncryptionAlgorithm=AES
  196 +# For ESAPI Java 2.0 - New encrypt / decrypt methods use this.
  197 +Encryptor.CipherTransformation=AES/CBC/PKCS5Padding
  198 +
  199 +# Applies to ESAPI 2.0 and later only!
  200 +# Comma-separated list of cipher modes that provide *BOTH*
  201 +# confidentiality *AND* message authenticity. (NIST refers to such cipher
  202 +# modes as "combined modes" so that's what we shall call them.) If any of these
  203 +# cipher modes are used then no MAC is calculated and stored
  204 +# in the CipherText upon encryption. Likewise, if one of these
  205 +# cipher modes is used with decryption, no attempt will be made
  206 +# to validate the MAC contained in the CipherText object regardless
  207 +# of whether it contains one or not. Since the expectation is that
  208 +# these cipher modes support support message authenticity already,
  209 +# injecting a MAC in the CipherText object would be at best redundant.
  210 +#
  211 +# Note that as of JDK 1.5, the SunJCE provider does not support *any*
  212 +# of these cipher modes. Of these listed, only GCM and CCM are currently
  213 +# NIST approved. YMMV for other JCE providers. E.g., Bouncy Castle supports
  214 +# GCM and CCM with "NoPadding" mode, but not with "PKCS5Padding" or other
  215 +# padding modes.
  216 +Encryptor.cipher_modes.combined_modes=GCM,CCM,IAPM,EAX,OCB,CWC
  217 +
  218 +# Applies to ESAPI 2.0 and later only!
  219 +# Additional cipher modes allowed for ESAPI 2.0 encryption. These
  220 +# cipher modes are in _addition_ to those specified by the property
  221 +# 'Encryptor.cipher_modes.combined_modes'.
  222 +# Note: We will add support for streaming modes like CFB & OFB once
  223 +# we add support for 'specified' to the property 'Encryptor.ChooseIVMethod'
  224 +# (probably in ESAPI 2.1).
  225 +# DISCUSS: Better name?
  226 +Encryptor.cipher_modes.additional_allowed=CBC
  227 +
  228 +# 128-bit is almost always sufficient and appears to be more resistant to
  229 +# related key attacks than is 256-bit AES. Use '_' to use default key size
  230 +# for cipher algorithms (where it makes sense because the algorithm supports
  231 +# a variable key size). Key length must agree to what's provided as the
  232 +# cipher transformation, otherwise this will be ignored after logging a
  233 +# warning.
  234 +#
  235 +# NOTE: This is what applies BOTH ESAPI 1.4 and 2.0. See warning above about mixing!
  236 +Encryptor.EncryptionKeyLength=128
  237 +
  238 +# Because 2.0 uses CBC mode by default, it requires an initialization vector (IV).
  239 +# (All cipher modes except ECB require an IV.) There are two choices: we can either
  240 +# use a fixed IV known to both parties or allow ESAPI to choose a random IV. While
  241 +# the IV does not need to be hidden from adversaries, it is important that the
  242 +# adversary not be allowed to choose it. Also, random IVs are generally much more
  243 +# secure than fixed IVs. (In fact, it is essential that feed-back cipher modes
  244 +# such as CFB and OFB use a different IV for each encryption with a given key so
  245 +# in such cases, random IVs are much preferred. By default, ESAPI 2.0 uses random
  246 +# IVs. If you wish to use 'fixed' IVs, set 'Encryptor.ChooseIVMethod=fixed' and
  247 +# uncomment the Encryptor.fixedIV.
  248 +#
  249 +# Valid values: random|fixed|specified 'specified' not yet implemented; planned for 2.1
  250 +Encryptor.ChooseIVMethod=random
  251 +# If you choose to use a fixed IV, then you must place a fixed IV here that
  252 +# is known to all others who are sharing your secret key. The format should
  253 +# be a hex string that is the same length as the cipher block size for the
  254 +# cipher algorithm that you are using. The following is an *example* for AES
  255 +# from an AES test vector for AES-128/CBC as described in:
  256 +# NIST Special Publication 800-38A (2001 Edition)
  257 +# "Recommendation for Block Cipher Modes of Operation".
  258 +# (Note that the block size for AES is 16 bytes == 128 bits.)
  259 +#
  260 +Encryptor.fixedIV=0x000102030405060708090a0b0c0d0e0f
  261 +
  262 +# Whether or not CipherText should use a message authentication code (MAC) with it.
  263 +# This prevents an adversary from altering the IV as well as allowing a more
  264 +# fool-proof way of determining the decryption failed because of an incorrect
  265 +# key being supplied. This refers to the "separate" MAC calculated and stored
  266 +# in CipherText, not part of any MAC that is calculated as a result of a
  267 +# "combined mode" cipher mode.
  268 +#
  269 +# If you are using ESAPI with a FIPS 140-2 cryptographic module, you *must* also
  270 +# set this property to false.
  271 +Encryptor.CipherText.useMAC=true
  272 +
  273 +# Whether or not the PlainText object may be overwritten and then marked
  274 +# eligible for garbage collection. If not set, this is still treated as 'true'.
  275 +Encryptor.PlainText.overwrite=true
  276 +
  277 +# Do not use DES except in a legacy situations. 56-bit is way too small key size.
  278 +#Encryptor.EncryptionKeyLength=56
  279 +#Encryptor.EncryptionAlgorithm=DES
  280 +
  281 +# TripleDES is considered strong enough for most purposes.
  282 +# Note: There is also a 112-bit version of DESede. Using the 168-bit version
  283 +# requires downloading the special jurisdiction policy from Sun.
  284 +#Encryptor.EncryptionKeyLength=168
  285 +#Encryptor.EncryptionAlgorithm=DESede
  286 +
  287 +Encryptor.HashAlgorithm=SHA-512
  288 +Encryptor.HashIterations=1024
  289 +Encryptor.DigitalSignatureAlgorithm=SHA1withDSA
  290 +Encryptor.DigitalSignatureKeyLength=1024
  291 +Encryptor.RandomAlgorithm=SHA1PRNG
  292 +Encryptor.CharacterEncoding=UTF-8
  293 +
  294 +# This is the Pseudo Random Function (PRF) that ESAPI's Key Derivation Function
  295 +# (KDF) normally uses. Note this is *only* the PRF used for ESAPI's KDF and
  296 +# *not* what is used for ESAPI's MAC. (Currently, HmacSHA1 is always used for
  297 +# the MAC, mostly to keep the overall size at a minimum.)
  298 +#
  299 +# Currently supported choices for JDK 1.5 and 1.6 are:
  300 +# HmacSHA1 (160 bits), HmacSHA256 (256 bits), HmacSHA384 (384 bits), and
  301 +# HmacSHA512 (512 bits).
  302 +# Note that HmacMD5 is *not* supported for the PRF used by the KDF even though
  303 +# the JDKs support it. See the ESAPI 2.0 Symmetric Encryption User Guide
  304 +# further details.
  305 +Encryptor.KDF.PRF=HmacSHA256
  306 +#===========================================================================
  307 +# ESAPI HttpUtilties
  308 +#
  309 +# The HttpUtilities provide basic protections to HTTP requests and responses. Primarily these methods
  310 +# protect against malicious data from attackers, such as unprintable characters, escaped characters,
  311 +# and other simple attacks. The HttpUtilities also provides utility methods for dealing with cookies,
  312 +# headers, and CSRF tokens.
  313 +#
  314 +# Default file upload location (remember to escape backslashes with \\)
  315 +HttpUtilities.UploadDir=C:\\ESAPI\\testUpload
  316 +HttpUtilities.UploadTempDir=C:\\temp
  317 +# Force flags on cookies, if you use HttpUtilities to set cookies
  318 +HttpUtilities.ForceHttpOnlySession=false
  319 +HttpUtilities.ForceSecureSession=false
  320 +HttpUtilities.ForceHttpOnlyCookies=true
  321 +HttpUtilities.ForceSecureCookies=true
  322 +# Maximum size of HTTP headers
  323 +HttpUtilities.MaxHeaderSize=4096
  324 +# File upload configuration
  325 +HttpUtilities.ApprovedUploadExtensions=.zip,.pdf,.doc,.docx,.ppt,.pptx,.tar,.gz,.tgz,.rar,.war,.jar,.ear,.xls,.rtf,.properties,.java,.class,.txt,.xml,.jsp,.jsf,.exe,.dll
  326 +HttpUtilities.MaxUploadFileBytes=500000000
  327 +# Using UTF-8 throughout your stack is highly recommended. That includes your database driver,
  328 +# container, and any other technologies you may be using. Failure to do this may expose you
  329 +# to Unicode transcoding injection attacks. Use of UTF-8 does not hinder internationalization.
  330 +HttpUtilities.ResponseContentType=text/html; charset=UTF-8
  331 +# This is the name of the cookie used to represent the HTTP session
  332 +# Typically this will be the default "JSESSIONID"
  333 +HttpUtilities.HttpSessionIdName=JSESSIONID
  334 +
  335 +
  336 +
  337 +#===========================================================================
  338 +# ESAPI Executor
  339 +# CHECKME - This should be made OS independent. Don't use unsafe defaults.
  340 +# # Examples only -- do NOT blindly copy!
  341 +# For Windows:
  342 +# Executor.WorkingDirectory=C:\\Windows\\Temp
  343 +# Executor.ApprovedExecutables=C:\\Windows\\System32\\cmd.exe,C:\\Windows\\System32\\runas.exe
  344 +# For *nux, MacOS:
  345 +# Executor.WorkingDirectory=/tmp
  346 +# Executor.ApprovedExecutables=/bin/bash
  347 +Executor.WorkingDirectory=
  348 +Executor.ApprovedExecutables=
  349 +
  350 +
  351 +#===========================================================================
  352 +# ESAPI Logging
  353 +# Set the application name if these logs are combined with other applications
  354 +Logger.ApplicationName=ExampleApplication
  355 +# If you use an HTML log viewer that does not properly HTML escape log data, you can set LogEncodingRequired to true
  356 +Logger.LogEncodingRequired=false
  357 +# Determines whether ESAPI should log the application name. This might be clutter in some single-server/single-app environments.
  358 +Logger.LogApplicationName=true
  359 +# Determines whether ESAPI should log the server IP and port. This might be clutter in some single-server environments.
  360 +Logger.LogServerIP=true
  361 +# LogFileName, the name of the logging file. Provide a full directory path (e.g., C:\\ESAPI\\ESAPI_logging_file) if you
  362 +# want to place it in a specific directory.
  363 +Logger.LogFileName=ESAPI_logging_file
  364 +# MaxLogFileSize, the max size (in bytes) of a single log file before it cuts over to a new one (default is 10,000,000)
  365 +Logger.MaxLogFileSize=10000000
  366 +
  367 +
  368 +#===========================================================================
  369 +# ESAPI Intrusion Detection
  370 +#
  371 +# Each event has a base to which .count, .interval, and .action are added
  372 +# The IntrusionException will fire if we receive "count" events within "interval" seconds
  373 +# The IntrusionDetector is configurable to take the following actions: log, logout, and disable
  374 +# (multiple actions separated by commas are allowed e.g. event.test.actions=log,disable
  375 +#
  376 +# Custom Events
  377 +# Names must start with "event." as the base
  378 +# Use IntrusionDetector.addEvent( "test" ) in your code to trigger "event.test" here
  379 +# You can also disable intrusion detection completely by changing
  380 +# the following parameter to true
  381 +#
  382 +IntrusionDetector.Disable=false
  383 +#
  384 +IntrusionDetector.event.test.count=2
  385 +IntrusionDetector.event.test.interval=10
  386 +IntrusionDetector.event.test.actions=disable,log
  387 +
  388 +# Exception Events
  389 +# All EnterpriseSecurityExceptions are registered automatically
  390 +# Call IntrusionDetector.getInstance().addException(e) for Exceptions that do not extend EnterpriseSecurityException
  391 +# Use the fully qualified classname of the exception as the base
  392 +
  393 +# any intrusion is an attack
  394 +IntrusionDetector.org.owasp.esapi.errors.IntrusionException.count=1
  395 +IntrusionDetector.org.owasp.esapi.errors.IntrusionException.interval=1
  396 +IntrusionDetector.org.owasp.esapi.errors.IntrusionException.actions=log,disable,logout
  397 +
  398 +# for test purposes
  399 +# CHECKME: Shouldn't there be something in the property name itself that designates
  400 +# that these are for testing???
  401 +IntrusionDetector.org.owasp.esapi.errors.IntegrityException.count=10
  402 +IntrusionDetector.org.owasp.esapi.errors.IntegrityException.interval=5
  403 +IntrusionDetector.org.owasp.esapi.errors.IntegrityException.actions=log,disable,logout
  404 +
  405 +# rapid validation errors indicate scans or attacks in progress
  406 +# org.owasp.esapi.errors.ValidationException.count=10
  407 +# org.owasp.esapi.errors.ValidationException.interval=10
  408 +# org.owasp.esapi.errors.ValidationException.actions=log,logout
  409 +
  410 +# sessions jumping between hosts indicates session hijacking
  411 +IntrusionDetector.org.owasp.esapi.errors.AuthenticationHostException.count=2
  412 +IntrusionDetector.org.owasp.esapi.errors.AuthenticationHostException.interval=10
  413 +IntrusionDetector.org.owasp.esapi.errors.AuthenticationHostException.actions=log,logout
  414 +
  415 +
  416 +#===========================================================================
  417 +# ESAPI Validation
  418 +#
  419 +# The ESAPI Validator works on regular expressions with defined names. You can define names
  420 +# either here, or you may define application specific patterns in a separate file defined below.
  421 +# This allows enterprises to specify both organizational standards as well as application specific
  422 +# validation rules.
  423 +#
  424 +Validator.ConfigurationFile=validation.properties
  425 +
  426 +# Validators used by ESAPI
  427 +Validator.AccountName=^[a-zA-Z0-9]{3,20}$
  428 +Validator.SystemCommand=^[a-zA-Z\\-\\/]{1,64}$
  429 +Validator.RoleName=^[a-z]{1,20}$
  430 +
  431 +#the word TEST below should be changed to your application
  432 +#name - only relative URL's are supported
  433 +Validator.Redirect=^\\/test.*$
  434 +
  435 +# Global HTTP Validation Rules
  436 +# Values with Base64 encoded data (e.g. encrypted state) will need at least [a-zA-Z0-9\/+=]
  437 +Validator.HTTPScheme=^(http|https)$
  438 +Validator.HTTPServerName=^[a-zA-Z0-9_.\\-]*$
  439 +Validator.HTTPParameterName=^[a-zA-Z0-9_]{1,32}$
  440 +Validator.HTTPParameterValue=^[a-zA-Z0-9.\\-\\/+=@_ ]*$
  441 +Validator.HTTPCookieName=^[a-zA-Z0-9\\-_]{1,32}$
  442 +Validator.HTTPCookieValue=^[a-zA-Z0-9\\-\\/+=_ ]*$
  443 +Validator.HTTPHeaderName=^[a-zA-Z0-9\\-_]{1,32}$
  444 +Validator.HTTPHeaderValue=^[a-zA-Z0-9()\\-=\\*\\.\\?;,+\\/:&_ ]*$
  445 +Validator.HTTPContextPath=^\\/?[a-zA-Z0-9.\\-\\/_]*$
  446 +Validator.HTTPServletPath=^[a-zA-Z0-9.\\-\\/_]*$
  447 +Validator.HTTPPath=^[a-zA-Z0-9.\\-_]*$
  448 +Validator.HTTPQueryString=^[a-zA-Z0-9()\\-=\\*\\.\\?;,+\\/:&_ %]*$
  449 +Validator.HTTPURI=^[a-zA-Z0-9()\\-=\\*\\.\\?;,+\\/:&_ ]*$
  450 +Validator.HTTPURL=^.*$
  451 +Validator.HTTPJSESSIONID=^[A-Z0-9]{10,30}$
  452 +
  453 +# Validation of file related input
  454 +Validator.FileName=^[a-zA-Z0-9!@#$%^&{}\\[\\]()_+\\-=,.~'` ]{1,255}$
  455 +Validator.DirectoryName=^[a-zA-Z0-9:/\\\\!@#$%^&{}\\[\\]()_+\\-=,.~'` ]{1,255}$
  456 +
  457 +# Validation of dates. Controls whether or not 'lenient' dates are accepted.
  458 +# See DataFormat.setLenient(boolean flag) for further details.
  459 +Validator.AcceptLenientDates=false
No preview for this file type
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<function-configuration>
  3 + <!-- 系统函数默认配置 -->
  4 + <bean class="org.wltea.expression.function.SystemFunctions">
  5 + <function name="CONTAINS" method="contains">
  6 + <parameter-type>java.lang.String</parameter-type>
  7 + <parameter-type>java.lang.String</parameter-type>
  8 + </function>
  9 + <function name="STARTSWITH" method="startsWith">
  10 + <parameter-type>java.lang.String</parameter-type>
  11 + <parameter-type>java.lang.String</parameter-type>
  12 + </function>
  13 + <function name="ENDSWITH" method="endsWith">
  14 + <parameter-type>java.lang.String</parameter-type>
  15 + <parameter-type>java.lang.String</parameter-type>
  16 + </function>
  17 + <function name="CALCDATE" method="calcDate">
  18 + <parameter-type>java.util.Date</parameter-type>
  19 + <parameter-type>int</parameter-type>
  20 + <parameter-type>int</parameter-type>
  21 + <parameter-type>int</parameter-type>
  22 + <parameter-type>int</parameter-type>
  23 + <parameter-type>int</parameter-type>
  24 + <parameter-type>int</parameter-type>
  25 + </function>
  26 + <function name="SYSDATE" method="sysDate" />
  27 + <function name="DAYEQUALS" method="dayEquals">
  28 + <parameter-type>java.util.Date</parameter-type>
  29 + <parameter-type>java.util.Date</parameter-type>
  30 + </function>
  31 + </bean>
  32 +
  33 + <!-- 用户函数配置 请在这里定制您自己的函数-->
  34 + <bean class="weaver.workflow.ruleDesign.WeaverFunctions">
  35 + <function name="NOTCONTAINS" method="doesNotContains">
  36 + <parameter-type>java.lang.String</parameter-type>
  37 + <parameter-type>java.lang.String</parameter-type>
  38 + </function>
  39 + <function name="BELONG" method="belong">
  40 + <parameter-type>java.lang.String</parameter-type>
  41 + <parameter-type>java.lang.String</parameter-type>
  42 + </function>
  43 + <function name="NOTBELONG" method="doesNotBelong">
  44 + <parameter-type>java.lang.String</parameter-type>
  45 + <parameter-type>java.lang.String</parameter-type>
  46 + </function>
  47 + <function name="HRMLEVEL" method="hrmLevel">
  48 + <parameter-type>java.lang.Object</parameter-type>
  49 + <parameter-type>java.lang.String</parameter-type>
  50 + <parameter-type>java.lang.String</parameter-type>
  51 + </function>
  52 + <function name="BROWSERCONTAINS" method="browserContains">
  53 + <parameter-type>java.lang.Object</parameter-type>
  54 + <parameter-type>java.lang.Object</parameter-type>
  55 + </function>
  56 + <function name="NOTBROWSERCONTAINS" method="notBrowserContains">
  57 + <parameter-type>java.lang.Object</parameter-type>
  58 + <parameter-type>java.lang.Object</parameter-type>
  59 + </function>
  60 + <function name="BROWSERINCLUDINGLOWER" method="browserIncludingLower">
  61 + <parameter-type>java.lang.Object</parameter-type>
  62 + <parameter-type>java.lang.Object</parameter-type>
  63 + </function>
  64 + <function name="NOTBROWSERINCLUDINGLOWER" method="notBrowserIncludingLower">
  65 + <parameter-type>java.lang.Object</parameter-type>
  66 + <parameter-type>java.lang.Object</parameter-type>
  67 + </function>
  68 + <function name="INLOCATION" method="inLocation">
  69 + <parameter-type>java.lang.Object</parameter-type>
  70 + <parameter-type>java.lang.Object</parameter-type>
  71 + <parameter-type>java.lang.Object</parameter-type>
  72 + <parameter-type>java.lang.Object</parameter-type>
  73 + <parameter-type>java.lang.Object</parameter-type>
  74 + <parameter-type>java.lang.Object</parameter-type>
  75 + <parameter-type>java.lang.Object</parameter-type>
  76 + </function>
  77 + <function name="NOTINLOCATION" method="notInLocation">
  78 + <parameter-type>java.lang.Object</parameter-type>
  79 + <parameter-type>java.lang.Object</parameter-type>
  80 + <parameter-type>java.lang.Object</parameter-type>
  81 + <parameter-type>java.lang.Object</parameter-type>
  82 + <parameter-type>java.lang.Object</parameter-type>
  83 + <parameter-type>java.lang.Object</parameter-type>
  84 + <parameter-type>java.lang.Object</parameter-type>
  85 + </function>
  86 + <function name="NOTSTARTSWITH" method="notStartsWith">
  87 + <parameter-type>java.lang.String</parameter-type>
  88 + <parameter-type>java.lang.String</parameter-type>
  89 + </function>
  90 + <function name="NOTENDSWITH" method="notEndsWith">
  91 + <parameter-type>java.lang.String</parameter-type>
  92 + <parameter-type>java.lang.String</parameter-type>
  93 + </function>
  94 + <function name="ISEMPTY" method="isEmpty">
  95 + <parameter-type>java.lang.String</parameter-type>
  96 + </function>
  97 + <function name="ISNOTEMPTY" method="isNotEmpty">
  98 + <parameter-type>java.lang.String</parameter-type>
  99 + </function>
  100 + </bean>
  101 +<!--
  102 + <bean class="org.wltea.expression.test.TestFunctions">
  103 + <constructor-args>
  104 + <constructor-arg type="java.lang.Integer">123</constructor-arg>
  105 + <constructor-arg type="java.lang.String">aa</constructor-arg>
  106 + </constructor-args>
  107 + <function name="问好" method="sayHello">
  108 + <parameter-type>java.lang.String</parameter-type>
  109 + </function>
  110 + </bean>
  111 + -->
  112 +
  113 +
  114 +</function-configuration>
  1 +<beans xmlns="http://xfire.codehaus.org/config/1.0">
  2 +
  3 + <service>
  4 + <name>DocService</name>
  5 + <namespace>http://localhost/services/DocService</namespace>
  6 + <serviceClass>weaver.docs.webservices.DocService</serviceClass>
  7 + <implementationClass>weaver.docs.webservices.DocServiceImpl</implementationClass>
  8 + <serviceFactory>org.codehaus.xfire.annotations.AnnotationServiceFactory</serviceFactory>
  9 + </service>
  10 + <service>
  11 + <name>HrmService</name>
  12 + <namespace>http://localhost/services/HrmService</namespace>
  13 + <serviceClass>weaver.hrm.webservice.HrmService</serviceClass>
  14 + <implementationClass>weaver.hrm.webservice.HrmServiceImpl</implementationClass>
  15 + <serviceFactory>org.codehaus.xfire.annotations.AnnotationServiceFactory</serviceFactory>
  16 + </service>
  17 + <service>
  18 + <name>ServiceMessageCustom</name>
  19 + <namespace>http://localhost/services/ServiceMessageCustom</namespace>
  20 + <serviceClass>com.cloudstore.dev.api.service.ServiceMessageCustom</serviceClass>
  21 + <implementationClass>com.cloudstore.dev.api.service.ServiceMessageCustomImpl</implementationClass>
  22 + </service>
  23 + <service>
  24 + <name>WorkflowService</name>
  25 + <namespace>webservices.services.weaver.com.cn</namespace>
  26 + <serviceClass>weaver.workflow.webservices.WorkflowService</serviceClass>
  27 + <implementationClass>weaver.workflow.webservices.WorkflowServiceImpl</implementationClass>
  28 + <serviceFactory>org.codehaus.xfire.annotations.AnnotationServiceFactory</serviceFactory>
  29 + </service>
  30 + <service>
  31 + <name>BlogService</name>
  32 + <namespace>webservices.blog.weaver.com.cn</namespace>
  33 + <serviceClass>weaver.blog.webservices.BlogService</serviceClass>
  34 + <implementationClass>weaver.blog.webservices.BlogServiceImplSec</implementationClass>
  35 + </service>
  36 + <service>
  37 + <name>ModeDateService</name>
  38 + <namespace>http://localhost/services/ModeDateService</namespace>
  39 + <serviceClass>weaver.formmode.webservices.ModeDateService</serviceClass>
  40 + <implementationClass>weaver.formmode.webservices.ModeDataServiceImpl</implementationClass>
  41 + </service>
  42 +
  43 + <!--增加新的webservice -->
  44 + <service>
  45 + <name>WorkflowServiceXml</name>
  46 + <serviceClass>weaver.workflow.webservices.WorkflowServiceXml</serviceClass>
  47 + <implementationClass>weaver.workflow.webservices.WorkflowServiceImplXml</implementationClass>
  48 + </service>
  49 + <service>
  50 + <name>ProjectService</name>
  51 + <namespace>webservices.prj.weaver.com.cn</namespace>
  52 + <serviceClass>weaver.pmp.ws.ProjectWs</serviceClass>
  53 + <implementationClass>weaver.pmp.ws.ProjectWs</implementationClass>
  54 + </service>
  55 + <service>
  56 + <name>LoginLogService</name>
  57 + <namespace>webservices.services.weaver.com.cn</namespace>
  58 + <serviceClass>weaver.login.webservices.LoginLogService</serviceClass>
  59 + <implementationClass>weaver.login.webservices.LoginLogServiceImpl</implementationClass>
  60 + </service>
  61 +
  62 + <!-- ESB WebService 触发 -->
  63 + <service>
  64 + <name>ESBService</name>
  65 + <namespace>webservices.esb.weaver.com.cn</namespace>
  66 + <serviceClass>com.api.integration.esb.trigger.WsTrigger</serviceClass>
  67 + <implementationClass>com.api.integration.esb.trigger.WsTriggerImpl</implementationClass>
  68 + <serviceFactory>org.codehaus.xfire.annotations.AnnotationServiceFactory</serviceFactory>
  69 + </service>
  70 + <!-- 公文交换平台 -->
  71 + <service>
  72 + <name>OdocExchangeWebService</name>
  73 + <namespace>http://localhost/services/OdocExchangeWebService</namespace>
  74 + <serviceClass>com.engine.odocExchange.ws.OdocExchangeWebService</serviceClass>
  75 + <implementationClass>com.engine.odocExchange.ws.OdocExchangeWebServiceImpl</implementationClass>
  76 + <serviceFactory>org.codehaus.xfire.annotations.AnnotationServiceFactory</serviceFactory>
  77 + </service>
  78 +
  79 + <!-- 统一待办接口 -->
  80 + <service>
  81 + <name>OfsTodoDataWebService</name>
  82 + <namespace>webservices.ofs.weaver.com.cn</namespace>
  83 + <serviceClass>weaver.ofs.webservices.OfsTodoDataWebService</serviceClass>
  84 + <implementationClass>weaver.ofs.webservices.OfsTodoDataWebServiceImpl</implementationClass>
  85 + </service>
  86 + <service>
  87 + <name>WorkPlanService</name>
  88 + <namespace>webservices.workplan.weaver.com.cn</namespace>
  89 + <serviceClass>weaver.WorkPlan.webservices.WorkplanService</serviceClass>
  90 + <implementationClass>weaver.WorkPlan.webservices.WorkplanServiceImpl</implementationClass>
  91 + </service>
  92 +</beans>
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type