오늘: 20|어제: 14|전체: 234,003|회원: 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
번호 분류 제목 글쓴이 날짜 조회 수
214 자유 설문조사 한번 해봅니다. 몇가지 됩니다. 많은 참여 바래요~ 13 Luatic™ 2013.12.17 10699
213 자유 요즘에 음식에 대한 글만 올리네요 7 file Bnrueaus™ 2014.05.01 8404
212 자유 CentOS 5 설치중 +=+ 69 file Bnrueaus™ 2014.02.27 8180
211 자유 Spainsh Libre Soy. Bnrueaus™ 2014.03.06 6935
210 자유 @럭키라이팅 19 YJSoft 2014.02.16 6581
209 자유 9개의 무료 플랫아이콘 배포 , Hi! Flat Icon! :D 5 file Hikoon 2014.05.18 6492
» 자유 그누보드 5 인젝션 취약버젼 사용하시는분 1 lanian 2014.05.08 6400
207 자유 Forums gratuits calme. 10 凹凸™ 2014.02.23 6378
206 자유 게시판 스킨이 바꼈다 ㅋㅋㅋ 5 Omega4 2014.02.19 6270
205 자유 ForHanbi 님이 마켓에다 배포하신 레이아웃 1 torkcar 2014.03.17 6205
204 자유 크롬에서 접속했는데 일부 사진이 엑박이네요 22 아이지존 2014.03.13 6205
203 자유 키야 검색등록 완료 ㅋ 4 file torkcar 2014.03.24 6203
202 자유 집단 소송 ㄷㄷㄷㄷ 2 YJSoft 2014.02.19 6117
201 자유 다른 방법이 있나요? 18 바다새 2014.02.21 6071
200 자유 워드 프레스 아바다 샀는데, 9 merkava 2014.02.27 6005
199 자유 무료폰트를 알아보다가 , 얼마전 윤디자인연구소에서 제작한 '대한체'가 상당히 예뻐서 공유합니다 :D 2 file Hikoon 2014.05.10 5978
198 자유 사이트 리뉴얼 완료 1 file YJSoft™ 2014.05.20 5916
197 자유 갑자기 모바일로 홈피에 들어가니.. 23 신승제 2014.02.17 5908
196 자유 차돌박이 샐러드 만드는 방법 2 Bnrueaus™ 2014.03.08 5903
195 자유 루아틱 오른쪽 위젯들 간단하게 플렛플렛하게 만들어봤습니다 'ㅅ'~ 7 file Hikoon 2014.05.08 5893
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 11 Next ›
/ 11

처음