Posts

Showing posts from October, 2023

An open-source GoTestWAF tool to test different web application firewalls (WAF) for detection logic and bypasses.

Image
 Install Docker =========== sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt update apt-cache policy docker-ce sudo apt install docker-ce sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker sudo docker --version Docker GoTestWAF tool Installation ========================== docker pull wallarm/gotestwaf Run Docker GoTestWAF tool ===================== docker run --rm -it -v /root:/app/reports \     wallarm/gotestwaf --url=<EVALUATED_SECURITY_SOLUTION_URL> *Replace '<EVALUATED_SECURITY_SOLUTION_URL>' with target URL. For Support, support@cybersecuritysolutions.raiseaticket.com

Building a Secure Web Application with Keycloak Authentication and Two-Factor Authentication (TOTP)

Image
  This explanation provides an overview of a Python Flask web application that integrates with Keycloak for user authentication and enhances security with Two-Factor Authentication (TOTP). The explanation covers the Python codebase and the HTML pages used for login, TOTP setup, TOTP verification, and logout. It demonstrates how these components work together to create a secure web application with authentication and security features. Code Base 1: Flask Web Application with Security Code Base 1 is a Python script for a Flask web application that focuses on security and authentication. Here's an overview of its key components: It imports various Python libraries and modules for web development, security, and authentication. The Flask app is configured with settings for session cookies, CORS, and secret keys. SQLAlchemy is used to set up and manage an SQLite database for user data. The code defines routes and view functions for user authentication, including TOTP-based Two-Factor Aut

A User Backup web application built with Flask and integrating Keycloak for authentication and Two Factor Authentication (Complies Data Privacy)

Image
  Backend Application (Python with Flask): Key Components: Environment Variables and Configuration: The application is configured using environment variables. These are crucial for security, as they keep sensitive data like passwords and secret keys out of the source code. Flask App Initialization and Configuration: The Flask web application is initiated, and configurations like 'UPLOAD_FOLDER' and security features are set up. Database Setup: SQLAlchemy is used to set up a database to store user information, including their TOTP secrets. Routes: Various routes are defined for functionalities like TOTP setup, file upload, file deletion, and download. Encryption & Decryption Utilities: Utilizing pyAesCrypt for encrypting and decrypting data ensuring data security. 2. User Authentication: Backend (Python): Uses Keycloak, an open-source Identity and Access Management tool. It's integrated using environment variables and configurations files. JWT tokens are used for s