오늘: 6|어제: 15|전체: 234,296|회원: 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 질문 FTP의 상태가..! 8 file Sorato 2015.02.10 308
158 자유 요새 블로그 수익활동 중인데 나름 짭짤한듯. 6 file merkava 2015.02.15 402
157 자유 jsp vs asp 5 Luatic™ 2015.02.16 328
156 자유 일반인들이 해외웹호스팅을 찾는 이유를 알았습니다. merkava 2015.03.12 439
155 질문 더 이상 SSL은 판매를 안하시는 모양이군요 5 HNMaru 2015.03.18 273
154 질문 중국 IP 차단하는 방법 없을까요? 10 file Sorato 2015.03.19 458
153 자유 공홈 리뉴얼 하고.. 1 file Luatic™ 2015.03.24 201
152 자유 획기적이고 저렴한 워드프레스 테마 나왔네요 4 Luatic™ 2015.03.25 262
151 질문 워드프레스 X 테마를 설치했는데.. 2 소금빛 2015.03.27 210
150 자유 네이버와 다음에서는 제 글이 검색이 안되요 ㅜㅜ 6 MarcusLim 2015.04.02 474
149 질문 XE 최적화방법하고 잘쓰는방법은 무엇이 있을까요 3 천월 2015.04.03 241
148 자유 별 희한한 상품이 다 나오네요. 다만 광고가 좀 의심스럽네요. 3 merkava 2015.04.03 286
147 자유 스마일서브 광고문구 file merkava 2015.04.03 273
146 자유 작년 한해 루아틱을 추천해 본 결과와 그 후 생각 2 file merkava 2015.04.04 395
145 질문 html5 게임을 지정하지 않은 도메인에서 못불러오게 하는 방법 아시는 분 있나요? 3 merkava 2015.04.04 260
144 자유 오래간만에 등장! torkcar 2015.04.19 147
143 자유 프레스타샵 1.6 번역 현황 1 file Luatic™ 2015.04.21 284
142 질문 노드js 사용이 가능한가요? 2 아스트린 2015.04.29 325
141 질문 cPanel에서 기본 도메인 변경하는방법 1 Kim 2015.05.05 555
140 질문 호스팅 질문입니다. 2 다이돌이 2015.05.13 217
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

처음