Exploiting PHP Type Juggling and Internal Classes in CTF Challenges
Challenge 1: Magic Methods via Internal ClassesThe regex validation requires both parameters to contain alphabetic characters. The eval function executes the string as PHP code, where new $v1 instantiates a class named by the value of $v1, and ($v2()) invokes the function specified by $v2, passing its return value to the constructor.When an obj ...
Posted on Fri, 03 Jul 2026 17:54:41 +0000 by wkilc
Understanding and Detecting CSRF Vulnerabilities
What is CSRF?
Cross-Site Request Forgery (CSRF) is a web-based attack vector that forces authenticated users to submit unwanted requests to a web application. The attack exploits the trust that a web application has in the user's browser by leveraging active sessions and authentication credentials. When successful, attackers can perform unautho ...
Posted on Fri, 26 Jun 2026 16:34:07 +0000 by phpfreak
CTFshow Naive Dog Cup Complete Walkthrough
Miscellaneous
Who Am I?
This challenge requires matching items against a provided list. While straightforward, it demands careful attention to detail as the information is spread across multiple entries. The solution involves cross-referencing each elemant systematically until all correspondences are established.
You and Me
Blind watermarking ...
Posted on Fri, 19 Jun 2026 16:28:01 +0000 by tmh766
Working with Django's Authentication System
Initializing a Superuser
Execute the following management command to create an administrative account:
python manage.py createsuperuser
During the prompt:
Username: Required.
Email: Optional.
Password: Will be stored as a hash. If forgotten, you can manually replace the hash in the database, though resetting via management commands is preferr ...
Posted on Tue, 02 Jun 2026 16:24:57 +0000 by Negligence
Reverse Engineering the JD Login Flow: Slider Verification and H5ST Token Generation
Target Endpoint and Initialization
The target for this analysis is the login portal of a major e-commerce platform. The primary objective is to intercept and decrypt the h5st signature parameter (version 4.7.4) and handle the accompanying CAPTCHA verification.
Base64 encoded target: aHR0cHM6Ly9wYXNzcG9ydC5qZC5jb20vbmV3L2xvZ2luLmFzcHg=
Request ...
Posted on Sat, 30 May 2026 21:09:43 +0000 by cedtech31
File Inclusion Vulnerabilities in Web Applications
File inclusion is a common programming feature that allows developers to import external code files into their applications. Most programming languages provide built-in functions for this purpose. In PHP, these functions include include(), include_once(), require(), and require_once().
When the included file path is hardcoded, this functionalit ...
Posted on Mon, 18 May 2026 03:01:25 +0000 by mubarakabbas
Comprehensive Exploitation Guide for Upload-Labs Pass-01 to Pass-19
Pass-01
Upload a PHP file like test_info.php with content:
<?php echo phpinfo(); ?>
This fails due to client-side JavaScript validation. Three bypass methods:
Disable JS: In Firefox, press F12 → Debugger → Settings → Disable JavaScript. Re-upload the file and access via copied image link.
Modify HTML locally: Save page source as custom_ ...
Posted on Sat, 16 May 2026 13:45:07 +0000 by stratguitar
Managing Web Application Sessions with Spring Security
Session Creation Policies
Spring Security provides several session creation policies that control how sessions are handled:
stateless: Spring Security does not create or utilize any session. This is ideal for stateless API applications and helps conserve server resources.
To configure session creation strategy, extend WebSecurityConfigurerAda ...
Posted on Fri, 15 May 2026 08:00:00 +0000 by lordfrikk
Web Penetration Testing Techniques and Exploits
File Inclusion and Upload Vulnerabilities
File inclusion vulnerabilities occur when a web application dynamically includes files based on user input without proper validation, allowing attackers to include malicious files. Modern server-side languages like PHP (since version 5.2.0) often disable remote file inclusion by default, making Local Fi ...
Posted on Sun, 10 May 2026 12:39:31 +0000 by dark dude
Bypassing SQL Injection Defenses with Character Encoding Techniques in MySQL
Character encoding represents the fundamental mechanism for translating characters into byte sequences within computing environments. Different databases and systems may utilize varying encoding schemes such as UTF-8, ISO-8859-1 (Latin-1), and GBK. When exploiting SQL injection vulnerabilities, attackers can leverage these encoding differences ...
Posted on Sat, 09 May 2026 23:18:25 +0000 by anon