since 1997

오늘 124 / 전체 478,104

CATEGORY

분류 전체보기 (637)
일상다반사 (235)
끄적끄적 (20)
음악이야기 (14)
$잡다구리 (60)
$운영체제 (129)
$프로그래밍 (148)
$데이터베이스 (31)
RECENT ARTICLES

  Distributed VCS

  Windows 7 - Reset win..

  티맥스소프트가..

  결국 티맥스소프..

  오늘, 그리고 내..

  라데온 4890

  Vincent Baguerre, Aur..

  Jetbrains IntelliJ ID..

  ERwin r7.3.3

  썬을 인수한 오라..

RECENT COMMENTS

  답변이 많이 늦었..

  저도 ?????로깨지..

  저거 나한테 버려..

  잘 보고 가요...

  안녕하세요..ERWi..

  고맙습니다. 잘쓰..

  몇달후 가상 fdd ..

  감사합니다..좋은..

  한큐에 해결 감사..

  한큐에 해결 감사..

RECENT TRACKBACKS

  Vista vmware로 인스..

  첫번째 포스팅입..

  Windows Vista Beta 1,..

  패킷 필터링과 방..

ARCHIVES

  2010년 08월

  2010년 07월

  2010년 05월

  2010년 02월

  2009년 08월

FAVORITE SITES

  ASP.NET

  BeautifyKoreanFonts

  BigAdmin HCL: Sun Dev..

  BitTorrent Linux Mirr..

  CentOS Linux

  DHS International

  DistroWatch.com

  eady.sarang.net

  Enlightenment Project

  EveryDNS

  glassfish : j2ee web ..

  GUI Linux

  iamyhs

  IETF

  Intel PRO/Wireless 39..

  Java SE Development K..

  Java SE Runtime Envir..

  JavaServiceNet

  JBoss 관리자 개발..

  miniwini.com

  MS Express Edition Pr..

  Netcraft

  PC-BSD

  PHP Snapshots

  Port Scan

  Programmer를 꿈꾸며..

  PSOUG Oracle Morgan&#..

  Solaris Operating Sys..

  SSH Secure Shell

  UANAX Organization

  USA LUG

  WhiteBox Linux

  [Bossa Nova] Chili Mu..

  [Bossa Nova] Chili Mu..

  네트워크 전문지..

  코리아인터넷닷..

  한국 데비안 사용..















  Get Firefox!
HOME RSS XML GUESTBOOK SERVICE ABOUT ADMIN
PREV | 1 ... 418 419 420 421 422 423 424 425 426 ... 637 | NEXT
File extensions restriction bypass vulnerability in GNUBoard | $프로그래밍 - PHP
SSR Team advisory at stgsecurity.com
Mon Jan 3 02:16:28 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

STG Security Advisory: [SSA-20041224-21] File extensions restriction bypass
vulnerability in GNUBoard.

Revision 1.0
Date Published: 2004-12-24 (KST)
Last Update: 2005-01-33
Disclosed by SSR Team (advisory at stgsecurity.com)


Summary
========
GNUBoard is one of widely used web BBS applications in Korea. However, an
input validation flaw can cause malicious attackers to run arbitrary
commands with the privilege of the HTTPD process, which is typically run as
the nobody user.



Vulnerability Class
===================
Implementation Error: Input validation flaw

Impact
======
High : arbitrary command execution.

Affected Products
================
GNUBoard 3.40 and prior

Vendor Status: NOT FIXED
========================
2004-12-09 Vulnerability found
2004-12-09 Vendor contacted and confirmed.
2005-01-03 Official release.

Details
=======
Implementation of check every file extension of upload files is
case-sensitive. Bypassing this mechanism, malicious attackers can upload
arbitrary script files (php, pl, cgi, etc) to a web server.

gbupdate.php (107 line)
- ----
// 실행가능한 스크립트 확장자
$source = array ("/.php/", "/.htm/", "/.cgi/", "/.pl/");
$target = array (".phpx", ".htmx", ".cgix", ".plx");
- ----

gbupdate.php (142 line)
- ----
// php_x 와 같은 방법으로 스크립트 실행을 하지 못하게 하였으나 abc.php._x
는 실행되는 버그가 있음
$filename = preg_replace($source, $target, $filename);
// 접두사를 붙인 파일명
$upload[$i] = $prefix . $filename;
$dest_file = "./data/file/$bo_table/$upload[$i]";
- ----

malicious attackers can upload [attack].PHP.rar, [attack].pHp.rar, etc.

Solution
=========
modify 108th line of gbupdate.php as following
$source = array ("/.php/i", "/.htm/i", "/.cgi/i", "/.pl/i");

Vendor URL
==========
http://www.sir.co.kr/

Credits
======
Jeremy Bae at STG Security

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBQdjxDD9dVHd/hpsuEQIfQgCdH1I3gYRYQhM49hOOEKg35puXscUAoK07
zKwL5QKjuY2Nb2yzKAtFwDhJ
=o+Ui
-----END PGP SIGNATURE-----
TRACKBACKS  MESSAGES  DATE 05/01/05 20:25
TRACKBACK ADDRESS : http://www.todayis.net/vSix/rserver.php?mode=tb&sl=340
SECRET
NAME
PASSWORD
HOMEPAGE  
MESSAGE