Fading Coder

One Final Commit for the Last Sprint

Infrastructure as Code Security Scanning with Terrascan

Terrascan is a static analysis tool designed to detect security and compliance violations in Infrastructure as Code (IaC) before provisioning cloud resources. It supports multiple IaC formats including Terraform, Kubernetes manifests, Helm charts, and Dockerfiles. Key Capabilities Scan IaC for misco...

PHP Command Injection Vulnerabilities: Analysis and Prevention

Command injection vulnerabilities occur when an application passes unsafe user input directly to a shell command interpreter. This allows an attacker to execute arbitrary commands on the host operating system, typically with the privileges of the vulnerable application. A Basic Example of a Vulnerab...

Deploying ClamAV for Malware Detection on Linux Systems

Clam AntiVirus is an open-source (GPL licensed) antivirus solution designed for Unix-like systems, particularly effective for email scanning at mail gateways. The toolkit encompasses various utilities including a scalable daemon, command-line scanner, and tools for automated database updates. Its co...

Defining Custom App Permissions

This document describes how app developers can use Android's security features to define their own permissions. By defining custom permissions, apps can share their resources and functionality with other apps. For more details, see the Permissions Overview. Background Android is a permission-separat...

Security Implications of Target=_blank Without noopener noreferrer

Hyperlinks utilizing target="_blank" attributes create bidirectional browsing context connections that expose the originating document to potnetial manipulation. When a new tab or window opens via this method, the JavaScript window.opener property in the destination page maintains a refere...

Generating Four-Digit Random Numbers in Python for Security Applications

Random Number Generation Using randint() The random module provides the randint() function wich generates integers within specified bounds inclusively. To create a four-digit number ranging from 1000 to 9999: import random security_code = random.randint(1000, 9999) print("Generated security cod...

Batch Vulnerability Testing Scripts for GET and POST Requests

Batch vulnerability testing is esential for security assessments to validate potential issues efficient. This article provides templates for GET and POST requests to automate this process. GET Request Batch Script This script reads IP addresses from a file and sends GET requests to test for vulnerab...

Advanced Methodologies for Bypassing Python Restricted Execution Environments

Restricted Execution Surface Analysis Python sandboxes typically restrict access to specific built-in modules and functions that allow system interaction. Commonly blocked libraries include os, subprocess, pty, sys, and commands. Additionally, direct execution functions like eval, exec, and open are...

Advanced Techniques for iframe Integration and Security

iframe Fundamentals An iframe is typically embedded directly in a page using the <iframe> tag with a src attribute. <iframe src="embedded_content.html"></iframe> However, basic usage can be enhanced with additional attributes for better control and functionality. Common i...

Configuring ALLOWED_HOSTS for Django Production Deployment

When setting DEBUG = False in Django's settings file, attempting to run the development server will result in an error. python manage.py runserver 8888 CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False. This error indicates that the ALLOWED_HOSTS configuration is mandatory when deb...