Информационная безопасность
[RU] switch to
English Version



Дополнительная информация

  Ежедневная сводка уязвимостей безопасности в Web-приложениях (PHP, ASP, JSP, CGI, Perl)

  Smarty 2.6.20 php injection

  Cross Site Scripting (XSS) Vulnerabilitiy in cpcommerce, CVE-2008-4121

  flashchat severe bug

  Cross-Site Scripting vulnerability in CNCat

From:vinodsharma.mimit_(at)_gmail.com <vinodsharma.mimit_(at)_gmail.com>
Date:24 октября 2008 г.
Subject:Doubt in MySQL Quick Admin <= 1.5.5 (COOKIE) Local File Inclusion Vulnerability POC posted on milworm

Greetings All,


I am trying to reproduce the issue, but php is reporting some error:
like fail to open lang/../../../../../../../../../../etc/passwd%00; path=//lang.php.

vulnerable code is:

include("lang/".$_SESSION['language']."/lang.
php");

exploit is: ../../../../../../../../../../etc/passwd%00; path=/ as the value of vulnerable paramter.

exploit link is:http://milw0rm.com/exploits/6641

After observing this error i thought there must some issue with the application, so created a vulnerable php program whose
details are:


<?php

include("lang/".$_GET[filename]."/lang.php");

?>


Then i send a GET a request:

GET /vulnerable php?filename=lang/../../../../../../../../../../etc/passwd%00; path=/

still, i am observing same error.

This is happening because inside include function, there is an additon of  /lang.php after the vulnerable parameter value
in both case.

I am not able to understand how the author manage to view the contents of /etc/passwd by this method.

please help me out.

Thanks in advance.

О сайте | Условия использования
© SecurityVulns, 3APA3A, Владимир Дубровин
Нижний Новгород

 
 



Rating@Mail.ru
test server