IIS Server Security - Re: Web Applications located on a FileDiskImage not accessable with Internet Informati

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > October 2006 > Re: Web Applications located on a FileDiskImage not accessable with Internet Informati





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Web Applications located on a FileDiskImage not accessable with Internet Informati
Skybuck Flying

2006-10-19, 1:25 am

Here is a piece of code from the filedisk.sys driver:

case IRP_MJ_DEVICE_CONTROL:
switch (io_stack->Parameters.DeviceIoControl.IoControlCode)
{
case IOCTL_FILE_DISK_OPEN_FILE:

SeImpersonateClient(device_extension->security_client_context,
NULL); // *** looks suspicious ***

irp->IoStatus.Status = FileDiskOpenFile(device_object,
irp);

PsRevertToSelf();

break;

case IOCTL_FILE_DISK_CLOSE_FILE:
irp->IoStatus.Status = FileDiskCloseFile(device_object,
irp);
break;

default:
irp->IoStatus.Status = STATUS_DRIVER_INTERNAL_ERROR;
}
break;

default:
irp->IoStatus.Status = STATUS_DRIVER_INTERNAL_ERROR;
}

Maybe impersonating the thread is detected by windows/iis and causing
problems ?

Just a guess

Bye,
Skybuck.


"Skybuck Flying" <spam@hotmail.com> wrote in message
news:eh6l52$chi$1@news3.zwoll1.ov.home.nl...
> Hello,
>
> As a programmer I would like to keep all my source code together on a
> FileDiskImage created with the FileDisk tool.
>
> ( http://www.winimage.com/misc/filedisk64.htm )
>
> However when Internet Information Server tries to read/execute the web
> application a Server Error happens, can this problem be fixed ?
>
> *** Begin of Error ***
>
> Server Error in '/SimpleWebApplicationTest' Application.
> --------------------------------------------------------------------------------
>
> Server cannot access application directory
> 'Z:\Delphi\Tests\SimpleWebApplicationTes
t'. The directory does not exist
> or is not accessible because of security settings.
> Description: An unhandled exception occurred during the execution of the
> current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> Exception Details: System.Web.HttpException: Server cannot access
> application directory 'Z:\Delphi\Tests\SimpleWebApplicationTes
t'. The
> directory does not exist or is not accessible because of security
> settings.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the current
> web request. Information regarding the origin and location of the
> exception can be identified using the exception stack trace below.
>
> Stack Trace:
>
>
> [HttpException (0x80004005): Server cannot access application directory
> 'Z:\Delphi\Tests\SimpleWebApplicationTes
t'. The directory does not exist
> or is not accessible because of security settings.]
> System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263
>
> [HttpException (0x80004005): ASP.NET Initialization Error]
> System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +982
> System.Web.HttpRuntime. ProcessRequestInternal(HttpWorkerRequest
wr) +128
>
>
>
>
> --------------------------------------------------------------------------------
> Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
> ASP.NET Version:1.1.4322.2032
>
> *** End of Error ***
>
> Bye,
> Skybuck.
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com