Possible to retrieve password of current application pool - Inetserver

This is a discussion on Possible to retrieve password of current application pool - Inetserver ; Running as an administrator, I can retrieve the account password stored by IIS for any application pool (using the WAMUserPass property). But, unsurprisingly, an ASP.NET application running inside an application pool that is does not have administrator privileges can't even ...

+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Possible to retrieve password of current application pool

  1. Default Possible to retrieve password of current application pool

    Running as an administrator, I can retrieve the account password
    stored by IIS for any application pool (using the WAMUserPass
    property). But, unsurprisingly, an ASP.NET application running inside
    an application pool that is does not have administrator privileges
    can't even enumerate the list of application pools.
    I can access the application pool by hard-coding the name, but even
    then the WAMUserPass is an empty property value collection.
    This doesn't hugely surprise me, but it's somewhat frustrating - the
    reason I want access to this password is to schedule Windows Tasks
    with the same account, and for that I need the password. Seeing as
    the password has already been configured and stored by IIS, I want to
    avoid needing to configure and store it elsewhere too.
    Unless there's another way around this...


  2. Default Re: Possible to retrieve password of current application pool

    What about running the web app pool as a user that has Administrator
    privileges?

    Cheers
    Ken

    "Dylan Nicholson" <wizofaus@hotmail.com> wrote in message
    news:1191510657.740308.102980@w3g2000hsg.googlegroups.com...
    > Running as an administrator, I can retrieve the account password
    > stored by IIS for any application pool (using the WAMUserPass
    > property). But, unsurprisingly, an ASP.NET application running inside
    > an application pool that is does not have administrator privileges
    > can't even enumerate the list of application pools.
    > I can access the application pool by hard-coding the name, but even
    > then the WAMUserPass is an empty property value collection.
    > This doesn't hugely surprise me, but it's somewhat frustrating - the
    > reason I want access to this password is to schedule Windows Tasks
    > with the same account, and for that I need the password. Seeing as
    > the password has already been configured and stored by IIS, I want to
    > avoid needing to configure and store it elsewhere too.
    > Unless there's another way around this...
    >



  3. Default Re: Possible to retrieve password of current application pool

    What about running the web app pool as a user that has Administrator
    privileges?

    Cheers
    Ken

    "Dylan Nicholson" <wizofaus@hotmail.com> wrote in message
    news:1191510657.740308.102980@w3g2000hsg.googlegroups.com...
    > Running as an administrator, I can retrieve the account password
    > stored by IIS for any application pool (using the WAMUserPass
    > property). But, unsurprisingly, an ASP.NET application running inside
    > an application pool that is does not have administrator privileges
    > can't even enumerate the list of application pools.
    > I can access the application pool by hard-coding the name, but even
    > then the WAMUserPass is an empty property value collection.
    > This doesn't hugely surprise me, but it's somewhat frustrating - the
    > reason I want access to this password is to schedule Windows Tasks
    > with the same account, and for that I need the password. Seeing as
    > the password has already been configured and stored by IIS, I want to
    > avoid needing to configure and store it elsewhere too.
    > Unless there's another way around this...
    >



  4. Default Re: Possible to retrieve password of current application pool

    Hello,

    Please see my answers inline


    Dylan Nicholson wrote:

    >Running as an administrator, I can retrieve the account password
    >stored by IIS for any application pool (using the WAMUserPass
    >property). But, unsurprisingly, an ASP.NET application running inside
    >an application pool that is does not have administrator privileges
    >can't even enumerate the list of application pools.


    That is true, by default non-administrators cannot enumerate the list of
    application pools.

    >I can access the application pool by hard-coding the name, but even
    >then the WAMUserPass is an empty property value collection.


    That is also true. By default, non-administrators can access non-secure
    properties, but not secure properties.

    >This doesn't hugely surprise me, but it's somewhat frustrating - the
    >reason I want access to this password is to schedule Windows Tasks
    >with the same account, and for that I need the password. Seeing as
    >the password has already been configured and stored by IIS, I want to
    >avoid needing to configure and store it elsewhere too.
    >Unless there's another way around this...


    I would run the scheduled application with a special user that has been
    setup specifically for this purpose. Then you can evaluate what
    permissions are needed, and run the application with a locked-down user
    account.

    Hope this helps!


    --
    Regards,
    Kristofer Gafvert
    http://www.gafvert.info/iis/ - IIS Related Info

  5. Default Re: Possible to retrieve password of current application pool

    Hello,

    Please see my answers inline


    Dylan Nicholson wrote:

    >Running as an administrator, I can retrieve the account password
    >stored by IIS for any application pool (using the WAMUserPass
    >property). But, unsurprisingly, an ASP.NET application running inside
    >an application pool that is does not have administrator privileges
    >can't even enumerate the list of application pools.


    That is true, by default non-administrators cannot enumerate the list of
    application pools.

    >I can access the application pool by hard-coding the name, but even
    >then the WAMUserPass is an empty property value collection.


    That is also true. By default, non-administrators can access non-secure
    properties, but not secure properties.

    >This doesn't hugely surprise me, but it's somewhat frustrating - the
    >reason I want access to this password is to schedule Windows Tasks
    >with the same account, and for that I need the password. Seeing as
    >the password has already been configured and stored by IIS, I want to
    >avoid needing to configure and store it elsewhere too.
    >Unless there's another way around this...


    I would run the scheduled application with a special user that has been
    setup specifically for this purpose. Then you can evaluate what
    permissions are needed, and run the application with a locked-down user
    account.

    Hope this helps!


    --
    Regards,
    Kristofer Gafvert
    http://www.gafvert.info/iis/ - IIS Related Info

  6. Default Re: Possible to retrieve password of current application pool

    On Oct 5, 5:07 pm, "Ken Schaefer" <kenREM...@THISadOpenStatic.com>
    wrote:
    > What about running the web app pool as a user that has Administrator
    > privileges?
    >

    Client insisted that this wasn't acceptable.


  7. Default Re: Possible to retrieve password of current application pool

    On Oct 5, 5:07 pm, "Ken Schaefer" <kenREM...@THISadOpenStatic.com>
    wrote:
    > What about running the web app pool as a user that has Administrator
    > privileges?
    >

    Client insisted that this wasn't acceptable.


  8. Default Re: Possible to retrieve password of current application pool

    On Oct 6, 1:59 am, "Kristofer Gafvert" <kgafv...@NEWSilopia.com>
    wrote:
    > Hello,
    >
    > Please see my answers inline
    >
    > Dylan Nicholson wrote:
    > >Running as an administrator, I can retrieve the account password
    > >stored by IIS for any application pool (using the WAMUserPass
    > >property). But, unsurprisingly, an ASP.NET application running inside
    > >an application pool that is does not have administrator privileges
    > >can't even enumerate the list of application pools.

    >
    > That is true, by default non-administrators cannot enumerate the list of
    > application pools.
    >
    > >I can access the application pool by hard-coding the name, but even
    > >then the WAMUserPass is an empty property value collection.

    >
    > That is also true. By default, non-administrators can access non-secure
    > properties, but not secure properties.
    >
    > >This doesn't hugely surprise me, but it's somewhat frustrating - the
    > >reason I want access to this password is to schedule Windows Tasks
    > >with the same account, and for that I need the password. Seeing as
    > >the password has already been configured and stored by IIS, I want to
    > >avoid needing to configure and store it elsewhere too.
    > >Unless there's another way around this...

    >
    > I would run the scheduled application with a special user that has been
    > setup specifically for this purpose. Then you can evaluate what
    > permissions are needed, and run the application with a locked-down user
    > account.
    >

    The ASP.NET app has the same permission requirements as the scheduled
    task - reading/writing to the same directory, accessing the same
    database.
    Anyway, how would that help, I'd still need to store a password.
    Actually my current "solution" is for the password to be fixed via an
    algorithm that uses static hard-coded information. Not happy with it
    though.



  9. Default Re: Possible to retrieve password of current application pool

    On Oct 6, 1:59 am, "Kristofer Gafvert" <kgafv...@NEWSilopia.com>
    wrote:
    > Hello,
    >
    > Please see my answers inline
    >
    > Dylan Nicholson wrote:
    > >Running as an administrator, I can retrieve the account password
    > >stored by IIS for any application pool (using the WAMUserPass
    > >property). But, unsurprisingly, an ASP.NET application running inside
    > >an application pool that is does not have administrator privileges
    > >can't even enumerate the list of application pools.

    >
    > That is true, by default non-administrators cannot enumerate the list of
    > application pools.
    >
    > >I can access the application pool by hard-coding the name, but even
    > >then the WAMUserPass is an empty property value collection.

    >
    > That is also true. By default, non-administrators can access non-secure
    > properties, but not secure properties.
    >
    > >This doesn't hugely surprise me, but it's somewhat frustrating - the
    > >reason I want access to this password is to schedule Windows Tasks
    > >with the same account, and for that I need the password. Seeing as
    > >the password has already been configured and stored by IIS, I want to
    > >avoid needing to configure and store it elsewhere too.
    > >Unless there's another way around this...

    >
    > I would run the scheduled application with a special user that has been
    > setup specifically for this purpose. Then you can evaluate what
    > permissions are needed, and run the application with a locked-down user
    > account.
    >

    The ASP.NET app has the same permission requirements as the scheduled
    task - reading/writing to the same directory, accessing the same
    database.
    Anyway, how would that help, I'd still need to store a password.
    Actually my current "solution" is for the password to be fixed via an
    algorithm that uses static hard-coded information. Not happy with it
    though.



  10. Default Re: Possible to retrieve password of current application pool


    "Dylan Nicholson" <wizofaus@hotmail.com> wrote in message
    news:1191753837.336887.274420@d55g2000hsg.googlegroups.com...
    > On Oct 5, 5:07 pm, "Ken Schaefer" <kenREM...@THISadOpenStatic.com>
    > wrote:
    >> What about running the web app pool as a user that has Administrator
    >> privileges?
    >>

    > Client insisted that this wasn't acceptable.


    OK - use the DPAPI API available with Windows to store/retrieve the
    password. That way you don't need to come up with your own secure storage
    mechanism for passwords.

    Cheers
    Ken


+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. application pool identity user password command line
    By Application Development in forum Inetserver
    Replies: 2
    Last Post: 12-22-2007, 06:17 AM
  2. Possible to retrieve password of current application pool
    By Application Development in forum DOTNET
    Replies: 6
    Last Post: 10-07-2007, 06:19 PM
  3. ERR2:7636 Unable to retrieve the credentials password
    By Application Development in forum Microsoft Exchange
    Replies: 0
    Last Post: 04-06-2007, 10:31 AM
  4. Get current users password
    By Application Development in forum Sharepoint
    Replies: 2
    Last Post: 12-04-2006, 08:19 AM