오늘: 3|어제: 15|전체: 234,249|회원: 118 (+0)|문서: 56,040 (+0)|댓글: 8,019 (+0)|첨부파일: 1,389 (+0)


조회 수 6400 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
Sql injection 관련 보안 이슈가 있었군요.

발표된지는 좀 된거같은데

업데이트 안하신분들은 보안패치하세요 *-*

==========================

Advisory: GNUboard SQL Injection Vulnerability
Author: claepo.wang@dbappsecurity.com.cn
Affected Version: GNUboard5(the latest version)
Vendor URL: http://sir.co.kr/
Vendor Status: Unfixed(I know little about Koreani¼Œso i do not know how to describe this vul to the vendor.)


==========================
Vulnerability Description
==========================

Recently, I found several vulnerabilities in the famous Korean forum program - the GNUboard.


Vulnerable file: /bbs/ajax.autosave.php


<?php
include_once('./_common.phpa€™);//global a€?filter' on $_GET,$_POST,$_COOKIE,$_REQUEST

if (!$is_member) die('0a€™);//member login

$uid = trim($_REQUEST['uid']); //current user id
$subject = trim(stripslashes($_REQUEST['subject'])); //stripslashes ignores the global filter causes a SQL Inj.
$content = trim(stripslashes($_REQUEST['content'])); //same above

if ($subject && $content) {
$sql = " select count(*) as cnt from {$g5['autosave_table']} where mb_id = '{$member['mb_id']}' and as_subject = '$subject' and as_content = '$content' ";
$row = sql_fetch($sql); //the bad str($subject|$content) insert into sql query

if (!$row['cnt']) {
$sql = " insert into {$g5['autosave_table']} set mb_id = '{$member['mb_id']}', as_uid = '{$uid}', as_subject = '$subject', as_content = '$content', as_datetime = '".G5_TIME_YMDHIS."' on duplicate key update as_subject = '$subject', as_content = '$content', as_datetime = '".G5_TIME_YMDHIS."' ";
$result = sql_query($sql, false); // database select

echo autosave_count($member['mb_id']);
}
}
?>

==========================
POC && EXP
==========================

1. Login as a member

2. GET http://target/bbs/ajax.autosave.php?content=1&subject=1[inj_exp]
{exp can be found on my server: http://pandas.pw/gnuboard.exp}
3. Page returns 1062 : Duplicate entry ~admin~*FF6F916236F4FFEE8FADD21EC20216C5C3A04E50~1' for key 'group_keya€™ .

====================
  • profile
    Luatic™ 2014.05.08 15:40
    흠 루아틱 내에 그누보드 사용자가 손가락에 꼽힐 정도로 적어서.. 아무튼 좋은 정보입니다..

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
94 자유 가입했어요^^~ 여기 은근히 괜찮은데네요! 4 캔슬 2014.07.29 3936
93 자유 절대로 광고가 아니에요 12 바다새 2014.06.25 4300
92 자유 가위바위보 잘못하면 저처럼 됩니다... 10 Bnrueaus™ 2014.04.25 4441
91 자유 망할 댓글.... Bnrueaus™ 2014.04.25 4549
90 자유 감사합니다! 1 신승제 2014.07.02 4558
89 자유 또희 네 이년~ 19 Bnrueaus™ 2014.04.19 4605
88 자유 내 이름은 루아틱이라넹. Bnrueaus™ 2014.04.26 4613
87 자유 음식 시리즈 2.... 아 진짜 먹고 싶다... 2 file Bnrueaus™ 2014.04.30 4676
86 자유 댓글이 안 써지네.... 1 Bnrueaus™ 2014.04.22 4688
85 자유 여러분 오늘의 추천곡입니다. 검은바다 2014.05.01 4728
84 자유 가위바위보 오늘의 불행왕입니다. ㅠㅠ 5 검은바다 2014.05.01 4731
83 자유 루아틱 커뮤니티 4일차 후기 7 검은바다 2014.05.02 4763
82 자유 아... 사망자가 한 명 더 추가되었군요... Bnrueaus™ 2014.04.19 4770
81 자유 사람은 많고 대답은 없고... 16 Bnrueaus™ 2014.04.25 4770
80 자유 이제 댓글은 써진다... Bnrueaus™ 2014.04.25 4772
79 자유 남자라면 꿈꾸는 우주전함 조종! 해보세요! 9 file 네비 2014.06.19 4808
78 자유 또희님 이쁜가요? 또희님 덕분에 렙업했어요! 8 검은바다 2014.05.01 4864
77 자유 거대한 붕어빵! 4 file Bnrueaus™ 2014.05.01 4868
76 자유 무료 강좌 정보 (부산 정보 산업 진흥원) 6 Luatic™ 2014.05.01 4909
75 자유 루아틱 호스팅 QR코드 file Bnrueaus™ 2014.02.28 4921
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 11 Next ›
/ 11

처음