오늘: 14|어제: 55|전체: 234,896|회원: 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
번호 분류 제목 글쓴이 날짜 조회 수
159 자유 할 일이 많네요. 하기는 싫은데...ㅋㅋ 6 file Bnrueaus™ 2014.03.07 5511
158 자유 오랜만에 글 쓰네요. 14 Bnrueaus™ 2014.04.06 5514
157 제로보드XE & 그누보드 차이점 9 file 가온누리 2013.02.08 5522
156 자유 게시판에서 파일 첨부가 안되네요. 8 file 퍼니엑스이 2014.03.05 5539
155 유머 일본의 다큐멘터리란?? 3 file Luatic™ 2012.03.27 5551
154 자유 ip 차단당한줄 모르고 열심히 로그인 했네요. ㅎㅎ 3 AJKJ 2014.05.17 5562
153 아직도 사이트가 조금 느리다는 느낌입니다. 11 칼킨7 2012.07.02 5567
152 점검 후 무료계정은 막안받을까 합니다. 3 루아틱 2012.06.10 5587
151 자유 현재 홈피 잘 운영되고 잇습니다 ^^ 3 torkcar 2014.02.26 5589
150 텍스타일 쓰시는분 계시나요~? 4 디지털물방울 2012.10.03 5600
149 오늘 제 실수로 루아틱님께서 고생 좀 하셨네요. 2 칼킨7 2012.05.10 5604
148 자유 글을 씁시다~~~ 21 Bnrueaus™ 2014.03.02 5606
147 XpressEngine을 쉬운 설치로 업데이트 했다가... 2 쿠아악샘 2012.09.12 5610
146 자유 다들 뭐 하시나요? Bnrueaus™ 2014.03.23 5633
145 자유 명예 사진 획득 - 사람 1 file Bnrueaus™ 2014.03.09 5640
144 자유 18일 오전 7시 및 9시 30분 현장 브리핑 내용입니다 2 Luatic™ 2014.04.18 5641
143 다들 휴가 가셧나본.. 1 루아틱 2012.08.01 5655
142 자유 돌아왓습니다 모링토크 2014.02.23 5658
141 자유 [BGM] 와 , 클라우드플레어라니! 2 file Hikoon 2014.05.03 5664
140 자유게시판이라서....주유할떄는 온도가 낮을때 하세요. 3 피사 2012.08.24 5681
Board Pagination ‹ Prev 1 ... 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Next ›
/ 31

처음