You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or the [tests](http://code.google.com/p/owasp-java-html-sanitizer/source/browse/trunk/src/tests/org/owasp/html/HtmlPolicyBuilderTest.java) show how to configure your own [policy](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/HtmlPolicyBuilder.html):
25
+
or the [tests](https://github.com/OWASP/java-html-sanitizer/tree/master/src/tests/org/owasp/html/HtmlPolicyBuilderTest.java) show how to configure your own [policy](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/HtmlPolicyBuilder.html):
26
26
27
27
```Java
28
28
PolicyFactory policy =newHtmlPolicyBuilder()
@@ -34,7 +34,7 @@ PolicyFactory policy = new HtmlPolicyBuilder()
34
34
String safeHTML = policy.sanitize(untrustedHTML);
35
35
```
36
36
37
-
or you can write [custom policies](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/ElementPolicy.html) to do things like changing `h1`s to `div`s with a certain class:
37
+
or you can write [custom policies](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/ElementPolicy.html) to do things like changing `h1`s to `div`s with a certain class:
Subscribe to the [mailing list](http://groups.google.com/group/owasp-java-html-sanitizer-support) to be notified of known [Vulnerabilities](Vulnerabilities). If you wish to report a vulnerability, please see [AttackReviewGroundRules](AttackReviewGroundRules).
56
+
Subscribe to the [mailing list](http://groups.google.com/group/owasp-java-html-sanitizer-support) to be notified of known [Vulnerabilities](tree/master/docs/vulnerabilities.md). If you wish to report a vulnerability, please see [AttackReviewGroundRules](tree/master/docs/attack_review_ground_rules.md).
57
57
58
58
----
59
59
60
-
[Thanks to everyone who has helped with criticism and code](Credits)
60
+
[Thanks to everyone who has helped with criticism and code](tree/master/docs/credits.md)
Copy file name to clipboardExpand all lines: docs/attack_review_ground_rules.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
# Attack Review Ground Rules
5
5
6
-
Please take a look at [http://canyouxssthis.com/HTMLSanitizer](http://canyouxssthis.com/HTMLSanitizer). That page includes a form that allows you to try out attacks against a sanitizer that implements the AntiSAMY [Ebay policy example](http://code.google.com/p/owasp-java-html-sanitizer/source/browse/trunk/src/main/org/owasp/html/examples/EbayPolicyExample.java).
6
+
Please take a look at [http://canyouxssthis.com/HTMLSanitizer](http://canyouxssthis.com/HTMLSanitizer). That page includes a form that allows you to try out attacks against a sanitizer that implements the AntiSAMY [Ebay policy example](https://github.com/OWASP/java-html-sanitizer/tree/master/src/main/org/owasp/html/examples/EbayPolicyExample.java).
7
7
8
8
Enter an attack payload in that form, and it will be reflected back to you. For example, if you enter `<b>Hello</b>, <i>World!</i>` you should see "**Hello**, _World!_" upon submitting the form. If you want to see the actual HTML produced, just view source.
9
9
@@ -25,10 +25,10 @@ If you are the first to provide me with a payload that does any of the following
25
25
26
26
This is not an exhaustive list and creative attacks are welcome.
27
27
28
-
If you find the web interface cumbersome, feel free to download and test the sanitizer directly. See [GettingStarted](GettingStarted) for instructions.
28
+
If you find the web interface cumbersome, feel free to download and test the sanitizer directly. See [GettingStarted](getting_started.md) for instructions.
29
29
30
30
## Reporting Vulnerabilities
31
-
Please report successful attacks with example input via [the issue tracker](http://code.google.com/p/owasp-java-html-sanitizer/issues/entry).
31
+
Please report successful attacks with example input via [the issue tracker](https://github.com/OWASP/java-html-sanitizer/issues/new).
32
32
33
33
If you believe the issue might affect production systems, please file the issue with the label `Private`.
Copy file name to clipboardExpand all lines: docs/getting_started.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@
5
5
6
6
## Getting the JARs
7
7
8
-
If you are using Maven then follow the [maven](Maven) directions to add a dependency. Otherwise, [download prebuilt jars](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/lib/) or [checkout](http://code.google.com/p/owasp-java-html-sanitizer/source/checkout) and build the latest source.
8
+
If you are using Maven then follow the [maven](maven.md) directions to add a dependency. Otherwise, [download prebuilt jars](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/lib/) or [checkout](git@github.com:OWASP/java-html-sanitizer.git) and build the latest source.
9
9
10
-
Unless maven is managing your [CLASSPATH](http://download.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html) for you, you need to add both `owasp-java-html-sanitizer.jar` and the Guava JAR.
10
+
Unless maven is managing your [CLASSPATH](http://download.oracle.com//javase/1.3/docs/tooldocs/win32/classpath.html) for you, you need to add both `owasp-java-html-sanitizer.jar` and the Guava JAR.
11
11
12
12
Once you have your CLASSPATH set up correctly with the relevant JARs you should be able to add
13
13
@@ -19,18 +19,18 @@ to one of your project's `.java` files and compile it.
19
19
20
20
## Using the APIs
21
21
22
-
The [examples](http://code.google.com/p/owasp-java-html-sanitizer/source/browse/trunk/#trunk%2Fsrc%2Fmain%2Forg%2Fowasp%2Fhtml%2Fexamples) include source code which defines a sanitization policy, and applies it to HTML.
22
+
The [examples](https://github.com/OWASP/java-html-sanitizer/tree/master/#trunk%2Fsrc%2Fmain%2Forg%2Fowasp%2Fhtml%2Fexamples) include source code which defines a sanitization policy, and applies it to HTML.
23
23
24
-
The [javadoc](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/index.html) covers more detailed topics, including [customization](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/HtmlPolicyBuilder.html).
24
+
The [javadoc](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/index.html) covers more detailed topics, including [customization](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/HtmlPolicyBuilder.html).
*[HtmlPolicyBuilder](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/HtmlPolicyBuilder.html) lets you easily build custom policies.
30
30
31
31
For advanced use, see:
32
-
*[AttributePolicy](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/AttributePolicy.html) and [ElementPolicy](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/ElementPolicy.html) allow complex customization.
33
-
*[HtmlStreamEventReceiver](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/org/owasp/html/HtmlStreamEventReceiver.html) if you don't just want a `String` as output.
32
+
*[AttributePolicy](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/AttributePolicy.html) and [ElementPolicy](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/ElementPolicy.html) allow complex customization.
33
+
*[HtmlStreamEventReceiver](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/org/owasp/html/HtmlStreamEventReceiver.html) if you don't just want a `String` as output.
Copy file name to clipboardExpand all lines: docs/maven.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ Including among your POMs `<dependencies>` this snippet of XML
17
17
18
18
will make the sanitizer available.
19
19
20
-
Be sure to change the [version](http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges) to a range suitable to your project. There are no unstable releases in maven. Bigger numbers are more recent and the [change log](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/CHANGE_LOG.html) can shed light on the salient differences.
20
+
Be sure to change the [version](http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges) to a range suitable to your project. There are no unstable releases in maven. Bigger numbers are more recent and the [change log](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/CHANGE_LOG.html) can shed light on the salient differences.
21
21
22
-
You should be able to build with the HTML sanitizer. You can peruse the [javadoc](http://owasp-java-html-sanitizer.googlecode.com/svn/trunk/distrib/javadoc/index.html), and if you have questions that aren't answered by these wiki pages, you can ask on the [mailing list](http://groups.google.com/group/owasp-java-html-sanitizer-support).
22
+
You should be able to build with the HTML sanitizer. You can peruse the [javadoc](https://rawgit.com/OWASP/java-html-sanitizer/tree/master/distrib/javadoc/index.html), and if you have questions that aren't answered by these wiki pages, you can ask on the [mailing list](http://groups.google.com/group/owasp-java-html-sanitizer-support).
0 commit comments