|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Possible to retrieve password of current application poolRunning 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... What about running the web app pool as a user that has Administrator
privileges? Cheers Ken Show quoteHide quote "Dylan Nicholson" <wizof***@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... > On Oct 5, 5:07 pm, "Ken Schaefer" <kenREM***@THISadOpenStatic.com> Client insisted that this wasn't acceptable.wrote: > What about running the web app pool as a user that has Administrator > privileges? > "Dylan Nicholson" <wizof***@hotmail.com> wrote in message OK - use the DPAPI API available with Windows to store/retrieve the 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. password. That way you don't need to come up with your own secure storage mechanism for passwords. Cheers Ken
Show quote
Hide quote
On Oct 7, 9:39 pm, "Ken Schaefer" <kenREM***@THISadOpenStatic.com> DPAPI offers storage? I thought it only offered encryption (and evenwrote: > "Dylan Nicholson" <wizof***@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. > then you have to provide a password). And it doesn't solve the problem have the user having to supply the password twice. Hello,
Please see my answers inline Dylan Nicholson wrote: >Running as an administrator, I can retrieve the account password That is true, by default non-administrators cannot enumerate the list of >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. application pools. >I can access the application pool by hard-coding the name, but even That is also true. By default, non-administrators can access non-secure >then the WAMUserPass is an empty property value collection. properties, but not secure properties. >This doesn't hugely surprise me, but it's somewhat frustrating - the I would run the scheduled application with a special user that has been >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... 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!
Show quote
Hide quote
On Oct 6, 1:59 am, "Kristofer Gafvert" <kgafv***@NEWSilopia.com> The ASP.NET app has the same permission requirements as the scheduledwrote: > 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. > 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.
Client certificate beginners help!
IUSR_myserver and deny write Why doesn't ASP.NET 2.0 use the Network Service account Multiple SSLs on the same IIs server Microsoft Update Allow only url forwarding source IP from Windows2000 (IIS5) to Windows2003 (IIS6) Updating a web server Security problems in non domain environment Web Folders and Integrated Authentication |
|||||||||||||||||||||||