오늘: 0|어제: 11|전체: 234,113|회원: 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
번호 분류 제목 글쓴이 날짜 조회 수
379 회사일이바뻐 제 사이트 작업이 늦어지고있네요..ㅠ 세브첸코 2013.12.06 4101
378 또 한번 여러분께 문의해봅니다.. 트래픽관련. 4 루아틱 2013.12.06 3694
377 VPS 관련 여러분들께 의견 듣고 싶습니다. 루아틱 2013.12.08 3865
376 오래간만입니다 3 YJSoft 2013.12.13 3693
375 토욜도 출근합니다 ㅠㅠ 2 루아틱 2013.12.13 3800
374 자유 설문조사 한번 해봅니다. 몇가지 됩니다. 많은 참여 바래요~ 13 Luatic™ 2013.12.17 10699
373 감기조심하세요 ㅠ 3 lanian 2013.12.18 3354
372 XE 1.7.4 베타5 서버정보 기능 괜찮네요.. 1 루아틱 2013.12.19 10402
371 돌아왓습니다 3 모링토크 2013.12.20 3450
370 훔 MariaDB를 심각히 고려중입니다. + ㅅ+; 루아틱 2013.12.22 3945
369 서버 구축중입니다 2 YJSoft 2013.12.22 3829
368 주문한 부품이 오면 서버 설치하려고 합니다만 1 YJSoft 2013.12.23 3582
367 크리스 마스 다들 누구랑 보내시나요?ㅎ 6 lanian 2013.12.24 3971
366 서버 구성 완료. 7 YJSoft 2013.12.25 4081
365 직접 서버 구성을 하려니까 힘드네요 YJSoft 2013.12.26 3685
364 사이트를 조금 바꿨습니다 2 file YJSoft 2014.01.03 3744
363 서버 재구성했습니다. 2 YJSoft 2014.01.13 3621
362 유머 [MV] 비(RAIN) - LA SONG 4 lanian 2014.01.17 4509
361 1366 x 768 에서 채팅방이 잘리네요 ㅎㅎ 1 카드피커 2014.01.21 3703
360 웹 앱 개발이 쉽지는 않네요.. ^^;; 4 카드피커 2014.01.22 3646
Board Pagination ‹ Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 31 Next ›
/ 31

처음