Question

Selective privilege escalation on XP Home Edition

Asked by: Havin_it

I'm looking after a couple of XP Home machines for my employer, and the first change I made was to provide Limited User accounts for day-to-day usage.  Inevitably, there are some applications that for one reason or another need Administrator privileges to run properly, and then there are also cases where a service needs to be stopped/restarted in my absence, or some other such task.

The task Scheduler solves some of these problems, but is no use for (a) running commands on-demand and (b) certain apps that have a GUI component (e.g. systray applet) that fails to appear on the Limited User's desktop when run from the scheduler (not a problem when invoked via runas.exe).

The "best" solution I've so far seen is using encoded .vbe scripts with the Admin password embedded in them, but even this is pretty unsecure and slightly unreliable (relying on timeouts to supply the password to runas.exe at the right moment, which can be hard to predict on old and tired machines).

Is there any other software or hack (for want of a better word) available that allows the Limited User, perhaps through an intermediary password-controlled service, to perform some commands as an Admin, but only those that I specify?

Price will be a major factor in any software recommendations, as the shop have little to no desire to spend on this; freeware preferred!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-01-22 at 06:32:57ID24074048
Tags

Windows XP Home Edition

,

limited user

,

privilege escalation

Topics

Windows XP Operating System

,

Windows Network Security

,

Miscellaneous Security

Participating Experts
2
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Removing startup programs (Systray)?
    I've got some programs I'd like to be disabled from starting upon W98 booting up - The scheduler, ICQ, Gozilla, and the AOL/Communicator program (systray icons on all of these). I've checked the startup directory, WIN.INI, and SYSTEM.INI files, but cannot find where/how thes...
  2. Can't gain escalated privileges to windows explorer by do…
    Anyone finding the 'Principle of Least Privilege' not as easy to work with since moving to IE7? I restrict my personal acct the same as anyone else for daily work, even though I'm admin. When I need admin rights, I use the admin level acct. I used to be able to runas in IE...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: pspglbPosted on 2009-01-22 at 06:41:50ID: 23439660

Try poviding power user rights and have a check.

 

by: Havin_itPosted on 2009-01-22 at 06:47:42ID: 23439722

Thanks for replying, pspglb.

Can you expand on this? I'm aware of the Power User Account, but if you're suggesting I permanently elevate the Limited User to one of these for full-time usage, I'm not too comfortable with that.  Can you point me to any details about what permissions a Power User has?

 

by: pspglbPosted on 2009-01-22 at 06:53:16ID: 23439777

 

by: Havin_itPosted on 2009-01-22 at 07:22:37ID: 23440044

Mm, as I thought: this is too much power to be giving to the day-to-day users.

 

by: McKnifePosted on 2009-01-22 at 14:33:21ID: 23444440

OK, if that is too much power.... let me tell you something about your unsderstanding of "selective". Whenever you let a user start an application with admin rights that is interactive (visible), you turn over full control to the user. He can do anything now, for example use the open dialoque as a filebrowser with admin rights and launch anything from there - there is no limiting him to just one task. So the only real way to use elevated rights is the noninteractive one - everything else is plain nonsense from a security point of view.

If you would like your tasks to be interactive, create them using the at command and use the /interactive switch.

 

by: Havin_itPosted on 2009-01-22 at 18:18:11ID: 23445910

I take the point about the potential for abuse, but the main application I want to run in this way does not use a filepicker; it's a control applet for a spamassassin frontend, and what interaction it allows consists of stopping/starting the proxy server and adding addresses to a whitelist.  I could possibly add the Apache Monitor tool to this, but that's optional as the ability for the Limited User to run "net restart Apache2" on-demand will probably suffice. Most of the other on-demand things required are similar net and netsh commands.

I've had a look at the at scheduler, but I'm not sure how it's appropriate here as the apps in question are to run at startup, not at a given time.

 

by: pspglbPosted on 2009-01-22 at 19:23:06ID: 23446127

Then Havin its better to give them power user rights if you are not comfortable with Admin rights. And dont let them know that they have those rights.

 

by: Havin_itPosted on 2009-01-23 at 05:04:23ID: 23448518

Most of the users aren't even aware of the privilege separation they now operate under; for example, one has already tried to reinstall one of the crap apps I'd had to clean off when I restored and reconfigured the PCs (I know because he complained to me that he couldn't do so, and I had to patiently explain that iTunes was not a business-critical application).

However had he been a Power User, the attempt would have been successful, and it might have been something rather more malevolent he installed.

In honesty I think it's quite unlikely that any of them would think of exploring a .vbe file and learning how to decode it to gain the Admin password, but I just hoped that there might be a more elegant and secure solution out there.

 

by: McKnifePosted on 2009-01-24 at 04:42:51ID: 23456135

Okay: more things to be aware of:
First decision to make is if you need the security or the functionality most and what could happen if the escalated privileges are abused.
-Although your app does not offer a file browser, it runs elevated and on the same desktop (visible), which makes it at least vulnerable to shatter attacks (see http://en.wikipedia.org/wiki/Shatter_attack). But I bet, that would not be needed, even. Most programs, if they don't offer a file - open, they have some other whole (mostly the rightclick options of the window) to easily break out and use high privileges everywhere. For example a defrag when scheduled and running interactive from the command line and closing afterwards can be easily overcome although no file - open.
-power users are strong and - as Mark Russionovich of Microsoft proved once - can turn their account into an admin account with a little trick. The trick starts with writing into a service in the registry.
-the scheduler and the at command: you can modify the task afterwards to your need at the GUI. It still runs interactive,

 

by: Havin_itPosted on 2009-01-25 at 19:06:00ID: 23463893

I don't want you to think I am wilfully louche when it comes to security, but c'mon: there's not a thing in the article you linked to that's anywhere close to as trivial to get root through as decoding a .vbe file.

I appreciate your tenacity on this issue, but I think it should be obvious from the original question that functionality is what I need most, but I am looking to reduce the opportunity (albeit already very small) for my (non-leet cracker) users to get root due to my provisioning root-level services on the basis I've outlined.  These people are not looking to install keyloggers on our PCs, but they'd "view" angelina-jolie-naked-jpg.exe given the chance.  I entertain the faint paranoiac twinge that when they see a cmd window with a password prompt which disappears a moment later, they might eventually put 2+2 together and deduce that the password is embedded somewhere in that process, and the really Machiavellian amongst them might then go on to figure out how to retrieve that password - but I honestly doubt it.

Perhaps I should simply have asked: Is there a Windows equivalent of sudo?

 

by: McKnifePosted on 2009-01-25 at 22:49:11ID: 23464545

"...but I honestly doubt it." - me too. It was just to make you aware. The only thing you miss (although again not very often to be seen) is that Angie.jpg.exe could carry out a shatter attack, too. So your users don't have to be knowlegdeable to properly infect their computers.
Anyway, if you look for sudo for windows, look at sudowin for example. Also have a look at runasspc instead of your vbe script. runasspc encrypts passwords.

 

by: Havin_itPosted on 2009-01-29 at 03:48:04ID: 23496146

Sorry I went off-radar for a bit.  I've been having a look at sudowin and runasspc. Both have a mix of pros and cons:

Runasspc: I like the no-install implementation, and the one-cryptfile-per-command layout. It's a very simple UI which I think my boss (who is trusted with the Admin password) could use it if necessary if I was away. Alternatively I could create a cryptfile at home and send it to the office.
However, given that it relies on symmetric encryption with no passphrase, I guess it has the same weakness as my VBE method (only this time I imagine you'd need to take ResHacker to the binary to retrieve the key). There's also the fact it costs money, but 20euro isn't much.

Sudowin: does exactly what it says on the tin, though it took quite a bit of reading (after tracking-down the "lost documentation" on the SANS website, then some more googling to work out the Home Edition method of adding a user to the "Sudoers" group) to get it configured. I'm used to this sort of thing with open-source software, but this was a particularly bad example.
The GUI password prompt is a problem, as like other .NET apps it doesn't respond well to systems where the DPI of Windows elements has been altered: the result is that the buttons disappear out of the bottom of the dialog. Not a big problem as I'm more likely to be using it from the commandline.
Having a service using ~18MB at all times is not ideal (these are quite old machines), but I appreciate that it's probably the only sensible way to implement this.
However, it won't be any good for the spamassassin applet I mentioned earlier. This is because it is elevating the Limited User's rights, rather than running as the Administrator.  I didn't mention this before, but this app can actually be run without Admin rights; but the problem is that ZoneAlarm goes nuts and uses 100% CPU when this happens, and this can only be avoided by running the app as Admin.

Given the choice, I would probably shell out the small cost for runasspc as it seems to fit our needs best. The AT trick sounds like it might do what I need for the spamassassin app, I haven't tried this yet but will do so.

If you don't mind I'd like to just keep this open for another day or so, in case anyone else has any other software to suggest.

 

by: Havin_itPosted on 2009-02-07 at 05:04:31ID: 23577951

McKnife, I tried what you suggested using AT, but the created job is owned by/runs as SYSTEM, and can't be edited via the Scheduled Tasks GUI (everything is greyed-out). I issued the AT command while logged-in as Limited User using a RunAs'd command prompt, would that be a factor?

 

by: McKnifePosted on 2009-02-14 at 13:56:11ID: 23642417

Hi, I just returned home from vacation.
It's greyed out because you missed to run the scheduler as administrator as well, I suppose.

 

by: Havin_itPosted on 2009-02-16 at 18:17:46ID: 23655880

Ì did the whole operation as Admin this time, but the result is the same. Is this a Home vs. Pro issue here, perhaps?

 

by: McKnifePosted on 2009-02-17 at 12:21:52ID: 23663744

Hi Havin_it, I am experiencing the same on both home and pro. I don't know why. I am used to using the schtasks.exe, try that one.

 

by: McKnifePosted on 2009-02-17 at 12:22:05ID: 23663747

...instead of at

 

by: Havin_itPosted on 2009-02-18 at 04:04:20ID: 23669268

Another Home limitation there - it doesn't come with schtasks.exe...

 

by: McKnifePosted on 2009-02-18 at 09:32:07ID: 23672678

Well, take it from pro.

 

by: Havin_itPosted on 2009-02-19 at 17:23:17ID: 23688014

The business doesn't have a copy of XP Pro, unfortunately. There was one - on the boss's laptop, where those features it holds over Home Ed were probably not employed once - but that machine gave up the ghost last year, and it was an OEM install.

For this and a number of reasons that have come up previously, it's tempting to hunt around for a couple of Pro licences for these PCs, but I've already mentioned the extreme budget austerity at play :/

Never mind. I reckon Sudowin will serve for the on-demand jobs, and the spamassassin problem will just have to be worked around some other way.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...