/secure-programming-101

The source code for my session "Secure Architecture and Programming 101".

Primary LanguageHTMLMIT LicenseMIT

Dependency Status Build Status

Secure Architecture and Programming 101

The source code for my session "Secure Architecture and Programming 101". So far this topics had been presented at the following occasions and conferences:

Usage instructions and warnings

WARNING: this code is for illustration and educational purpose only!!! The examples contain some good but also a lot of insecure coding examples. Please do not use these in your production code!!!

In order to compile and run the examples you do not need much. A recent JDK8 and a local Glassfish4 installation. Use the provided Gradle Wrapper to compile.

$ gradlew build

Glassfish password alias

In order to run the example web application you need to create a password alias.

asadmin> create-password-alias
Enter the value for the aliasname operand> secpro_password_alias
Enter the alias password> 1qay2wsx
Enter the alias password again> 1qay2wsx
Command create-password-alias executed successfully.

Then you need to update your Glassfish domain server configuration an add the following system property definition to your JVM options:

-Dde.qaware.campus.secpro.password=${ALIAS=secpro_password_alias}

Using ZED Attack Proxy to attack

Deploy the application to your Glassfish 4 installation, next start the ZED attack proxy.

Perform attacks on the following URLs:

Now open a browser and type the following URLs:

Maintainer

M.-Leander Reimer (@lreimer), mario-leander.reimer@qaware.de

License

The software and documentation is provided under the MIT open source license, read the LICENSE file for details.