Re: webmin 0.91 ../.. problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 0.85  I was simply prompted for the user and password... I have one
question were you already 
logged into webmin prior to typing this url? I want to know if it first
requires authentication to 
access the cgi scripts... I suspect it does and that your credentials
were cached?
-KF

"A. Ramos" wrote:
> 
>         Hello,
> 
>         I find bug on webmin 0.91.
> 
>   From web:
> 
> <snip>
> What is Webmin?
> Webmin is a web-based interface for system administration for Unix. Using any browser that supports tables and forms (and Java for the File Manager module), you can setup user accounts, Apache, DNS, file sharing and so on.
> Webmin consists of a simple web server, and a number of CGI programs which directly update system files like /etc/inetd.conf and /etc/passwd. The web server and all CGI programs are written in Perl version 5, and use no non-standard Perl modules.
> </snip>
> 
>         With this software you can start and stop services with simple user, and edit init scripts.
>  like this: http://www.domain.com:10000/servers/link.cgi/1008341480/init/edit_action.cgi?0+makedev
>  but you can use this:
> http://www.domain.com:10000/servers/link.cgi/1008341480/init/edit_action.cgi?0+../../../../../etc/shadow
> 
> The problem reside on init/edit_action.cgi:
> <snip>
>         open(FILE, $file);
>         while(<FILE>) {
>                 $data .= $_;
>                 if (/^\s*(['"]?)([a-z]+)\1\)/i) {
>                         $hasarg{$2}++;
>                         }
>                 }
>         close(FILE);
> </snip>
>         To fix, use your favorite regexp.
> 
>         Yes, you can save file on server...
> 
> --
> Prisacom
> A. Ramos mailto:aramos@prisacom.com
> Dpto. Admin. Sistemas
> --

[Index of Archives]     [Linux Security]     [Netfilter]     [PHP]     [Yosemite News]     [Linux Kernel]

  Powered by Linux