Skip to content

Commit 06ecf58

Browse files
committed
Merge branch '2.2.3.0' to master.
2 parents 609e21c + 67980b8 commit 06ecf58

38 files changed

+805
-1450
lines changed

.github/workflows/maven.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ develop ]
9+
pull_request:
10+
branches: [ develop ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Build with Maven
24+
run: mvn -B package --file pom.xml

.github/workflows/superlinter.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Super-Linter
2+
3+
# Run this workflow every time a new commit pushed to your repository
4+
on: push
5+
6+
jobs:
7+
# Set the job key. The key is displayed as the job name
8+
# when a job name is not provided
9+
super-lint:
10+
# Name the Job
11+
name: Lint code base
12+
# Set the type of machine to run on
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# Checks out a copy of your repository on the ubuntu-latest machine
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
# Runs the Super-Linter action and ignore errors
21+
- name: Run Super-Linter
22+
uses: github/super-linter@v3
23+
env:
24+
DEFAULT_BRANCH: develop
25+
DISABLE_ERRORS: true
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CONTRIBUTING-TO-ESAPI.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ Getting Started:
55
"Contributing to ESAPI legacy" in ESAPI's README.md file. It
66
make contain updates and advice not contained herein.
77

8+
A Special Note on GitHub Authentication:
9+
GitHub has announced that they are deprecating authentiation based on
10+
username / password and beginning 2021-08-13, you will no longer be able
11+
to your password to authenticate to 'git' operations on GitHub.com.
12+
Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
13+
for details and plan accordingly.
14+
15+
816
Finding Something Interesting to Work on:
917

1018
See the section "Contributing to ESAPI legacy in

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,32 @@ OWASP® ESAPI (The OWASP Enterprise Security API) is a free, open source, web ap
1414
</tr>
1515
</table>
1616

17+
# Where is the OWASP ESAPI wiki page?
18+
You can find the OWASP ESAPI wiki pages at [https://owasp.org/www-project-enterprise-security-api/](https://owasp.org/www-project-enterprise-security-api/). The ESAPI legacy GitHub repo also has a few useful wiki pages.
19+
1720
# What does Legacy mean?
1821
<p>This is the legacy branch of ESAPI which means it is an actively maintained branch of the project, however significan *new* feature development for this branch will *not* be done. Features that have already been scheduled for the 2.x branch will move forward.
22+
You will find that GitHub repository at [https://github.com/ESAPI/esapi-java-legacy](https://github.com/ESAPI/esapi-java-legacy).
1923

2024
<b>IMPORTANT NOTES:</b>
2125
The default branch for ESAPI legacy is now the 'develop' branch (rather than the 'master' branch), where future development, bug fixes, etc. will now be done. The 'master' branch is now marked as "protected"; it reflects the latest stable ESAPI release (2.1.0.1 as of this date). Note that this change of making the 'develop' branch the default may affect any pull requests that you were intending to make.
2226

2327
Also, the <i>minimal</i> baseline Java version to use ESAPI is Java 7. (This was changed from Java 6 during the 2.2.0.0 release.)
2428

2529
# Where can I find ESAPI 3.x?
26-
https://github.com/ESAPI/esapi-java
30+
[https://github.com/ESAPI/esapi-java](https://github.com/ESAPI/esapi-java)
2731

2832
Note however that work on ESAPI 3 has not yet become in earnest and is only in its earliest planning stages. Even the code that is presently there will likely change.
2933

34+
# ESAPI release notes
35+
The ESAPI release notes may be found in ESAPI's "documentation" directory. They are generally named "esapi4java-core-*2.#.#.#*-release-notes.txt", where "*2.#.#.#*" refers to the ESAPI release number (which uses semantic versioning).
36+
## IMPORTANT
37+
Starting with ESAPI 2.2.3.0, ESAPI is using a version of AntiSamy that by default includes 'slf4j-simple' and does XML schema validation on the AntiSamy policy files. Please **READ** the release notes for the 2.2.3.0 release (at least the beginning portion) for some important notes that likely will affect your use of ESAPI! You have been warned!!!
38+
3039
# Locating ESAPI Jar files
31-
The [latest ESAPI release](https://github.com/ESAPI/esapi-java-legacy/releases/latest) is 2.2.1.0. The default configuration jar and its GPG signature can be found at [esapi-2.2.1.0-configuration.jar](https://github.com/ESAPI/esapi-java-legacy/releases/download/esapi-2.2.1.0/esapi-2.2.1.0-configuration.jar) and [esapi-2.2.1.0-configuration.jar.asc](https://github.com/ESAPI/esapi-java-legacy/releases/download/esapi-2.2.1.0/esapi-2.2.1.0-configuration.jar.asc) respectively.
40+
The [latest ESAPI release](https://github.com/ESAPI/esapi-java-legacy/releases/latest) is 2.2.3.0. The default configuration jar and its GPG signature can be found at [esapi-2.2.3.0-configuration.jar](https://github.com/ESAPI/esapi-java-legacy/releases/download/esapi-2.2.3.0/esapi-2.2.3.0-configuration.jar) and [esapi-2.2.3.0-configuration.jar.asc](https://github.com/ESAPI/esapi-java-legacy/releases/download/esapi-2.2.3.0/esapi-2.2.3.0-configuration.jar.asc) respectively.
3241

33-
The latest regular ESAPI jars can are available from Maven Central.
42+
The latest *regular* ESAPI jars can are available from Maven Central.
3443

3544
However, before you start a *new* project using ESAPI, but sure to read "[Should I use ESAPI?](https://owasp.org/www-project-enterprise-security-api/#div-shouldiuseesapi)".
3645

@@ -42,7 +51,7 @@ Note that this policy does not apply to classes under the **org.owasp.esapi.refe
4251
## How can I contribute or help with fix bugs?
4352
Fork and submit a pull request! Simple as pi! We generally only accept bug fixes, not new features because as a legacy project, we don't intend on adding new features, although we may make exceptions. If you wish to propose a new feature, the best place to discuss it is via the ESAPI-DEV mailing list mentioned below. Note that we vet all pull requests, including coding style of any contributions; use the same coding style found in the files you are already editing.
4453

45-
If you are new to ESAPI, a good place to start is to look for GitHub issues labled as 'good first issue'. (E.g., to find all open issues with that label, use https://github.com/ESAPI/esapi-java-legacy/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22.)
54+
If you are new to ESAPI, a good place to start is to look for GitHub issues labled as 'good first issue'. (E.g., to find all open issues with that label, use [https://github.com/ESAPI/esapi-java-legacy/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22](https://github.com/ESAPI/esapi-java-legacy/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).)
4655

4756
You can find additional details in the file '[CONTRIBUTING-TO-ESAPI.txt](https://raw.githubusercontent.com/ESAPI/esapi-java-legacy/develop/CONTRIBUTING-TO-ESAPI.txt)'.
4857

@@ -52,10 +61,10 @@ In mid-2014 ESAPI Migrated all code to GitHub. This migration was completed in N
5261
### What about the issues still located on Google Code?
5362
All issues from Google Code have been migrated to GitHub issues. We have a JIRA/Confluence instance allocated to us, but it has not be configured to synchronize with the GitHub issues, and thus is should not be used. JIRA is fine, but if we can't have it synchronized with GitHub issues (which is where the majority of our users report issues), it is not usuable. As developers, we do not want to spent time having to close issues from multiple bug-tracking sites. Therefore, until this synchronization happens (see GitHub issue #371), please ONLY use GitHub for reporting bugs.
5463

55-
When reporting an issue, please be clear and try to ensure that the ESAPI development team has sufficient information to be able to reproduce your results. If you have not already done so, this might be a good time to read Eric S. Raymond's classic "How to Ask Questions the Smart Way", at http://www.catb.org/esr/faqs/smart-questions.html before posting your issue.
64+
When reporting an issue, please be clear and try to ensure that the ESAPI development team has sufficient information to be able to reproduce your results. If you have not already done so, this might be a good time to read Eric S. Raymond's classic "How to Ask Questions the Smart Way", at [http://www.catb.org/esr/faqs/smart-questions.html](http://www.catb.org/esr/faqs/smart-questions.html) before posting your issue.
5665

5766
### Find an Issue?
58-
If you have found a bug, then create an issue on the esapi-legacy-java repo: https://github.com/ESAPI/esapi-java-legacy/issues
67+
If you have found a bug, then create an issue on the esapi-legacy-java repo: [https://github.com/ESAPI/esapi-java-legacy/issues](https://github.com/ESAPI/esapi-java-legacy/issues)
5968

6069
NOTE: Please do NOT use GitHub issues to ask questions about ESAPI. If you wish to do this, post to either of the 2 mailing lists (now on Google Groups) found at the bottom of this page. If we find questions as GitHub issues, we simply will close them and direct you to do this anyhow.
6170

@@ -75,10 +84,10 @@ More detail is available in the file '[SECURITY.md](https://raw.githubuserconten
7584

7685
*Documentation:* https://owasp-esapi.atlassian.net/wiki/display/ESAPILEG/ESAPI+Legacy (Coming Soon), for now find general documentation under the 'documentation/' directory, and the latest Javadoc under https://www.javadoc.io/doc/org.owasp.esapi/esapi/
7786

78-
*Realtime Support available on our IRC Channel:*<br/>
87+
*Realtime Support available on our IRC Channel (but if you want to do so, and want the ESAPI dev team to participate, email us a heads up first as to the date/time):*<br/>
7988
Server: irc.freenode.net<br/>
8089
Channel: #esapi<br/>
81-
Webchat http://webchat.freenode.net/
90+
Webchat: [https://webchat.freenode.net/](https://webchat.freenode.net/)
8291

8392
*Mailing lists:*
8493
As of 2019-03-25, ESAPI's 2 mailing lists were officially moved OFF of their Mailman mailing lists to a new home on Google Groups.
@@ -87,9 +96,9 @@ The names of the 2 Google Groups are "[esapi-project-users](mailto:esapi-project
8796

8897
Old archives for the old Mailman mailing lists for ESAPI-Users and ESAPI-Dev are still available at https://lists.owasp.org/pipermail/esapi-users/ and https://lists.owasp.org/pipermail/esapi-dev/ respectively.
8998

90-
For a general overview of Google Groups and its web interface, see https://groups.google.com/forum/#!overview
99+
For a general overview of Google Groups and its web interface, see [https://groups.google.com/forum/#!overview](https://groups.google.com/forum/#!overview)
91100

92-
For assistance subscribing and unsubscribing to Google Groups, see https://webapps.stackexchange.com/questions/13508/how-can-i-subscribe-to-a-google-mailing-list-with-a-non-google-e-mail-address/15593#15593
101+
For assistance subscribing and unsubscribing to Google Groups, see [https://webapps.stackexchange.com/questions/13508/how-can-i-subscribe-to-a-google-mailing-list-with-a-non-google-e-mail-address/15593#15593](https://webapps.stackexchange.com/questions/13508/how-can-i-subscribe-to-a-google-mailing-list-with-a-non-google-e-mail-address/15593#15593).
93102

94103
----------
95104
OWASP is a registered trademark of the OWASP Foundation, Inc.

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ For details see:
4848

4949
* [Security Bulletin #1 - MAC Bypass in ESAPI Symmetric Encryption](documentation/ESAPI-security-bulletin1.pdf), which covers CVE-2013-5679 and CVE-2013-5960
5050
* [Security Bulletin #2 - How Does CVE-2019-17571 Impact ESAPI?](documentation/ESAPI-security-bulletin2.pdf), which covers the Log4J 1 deserialization CVE.
51+
* [Security Bulletin #3 - How Does the Apache Xerces Vulnerability(SNYK-JAVA-XERCES-608891) Impact ESAPI?](documentation/ESAPI-security-bulletin3.pdf), which decribes a unpatched Apache Xerces vulnerability similar to [CVE-2020-14621](https://nvd.nist.gov/vuln/detail/CVE-2020-14621)

configuration/esapi/ESAPI.properties

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# This file is part of the Open Web Application Security Project (OWASP)
55
# Enterprise Security API (ESAPI) project. For details, please see
6-
# http://www.owasp.org/index.php/ESAPI.
6+
# https://owasp.org/www-project-enterprise-security-api/
77
#
88
# Copyright (c) 2008,2009 - The OWASP Foundation
99
#
@@ -387,11 +387,6 @@ Logger.LogEncodingRequired=false
387387
Logger.LogApplicationName=true
388388
# Determines whether ESAPI should log the server IP and port. This might be clutter in some single-server environments.
389389
Logger.LogServerIP=true
390-
# LogFileName, the name of the logging file. Provide a full directory path (e.g., C:\\ESAPI\\ESAPI_logging_file) if you
391-
# want to place it in a specific directory.
392-
Logger.LogFileName=ESAPI_logging_file
393-
# MaxLogFileSize, the max size (in bytes) of a single log file before it cuts over to a new one (default is 10,000,000)
394-
Logger.MaxLogFileSize=10000000
395390
# Determines whether ESAPI should log the user info.
396391
Logger.UserInfo=true
397392
# Determines whether ESAPI should log the session id and client IP.
@@ -487,7 +482,7 @@ Validator.HTTPJSESSIONID=^[A-Z0-9]{10,32}$
487482
# Contributed by [email protected]
488483
# Github Issue 126 https://github.com/ESAPI/esapi-java-legacy/issues/126
489484
Validator.HTTPParameterName=^[a-zA-Z0-9_\\-]{1,32}$
490-
Validator.HTTPParameterValue=^[\\p{L}\\p{N}.\\-/+=_ !$*?@]{0,1000}$
485+
Validator.HTTPParameterValue=^[-\\p{L}\\p{N}./+=_ !$*?@]{0,1000}$
491486
Validator.HTTPContextPath=^/[a-zA-Z0-9.\\-_]*$
492487
Validator.HTTPQueryString=^([a-zA-Z0-9_\\-]{1,32}=[\\p{L}\\p{N}.\\-/+=_ !$*?@%]*&?)*$
493488
Validator.HTTPURI=^/([a-zA-Z0-9.\\-_]*/?)*$

0 commit comments

Comments
 (0)