[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [FD] Beginner's error: import function of Windows Mail executes rogue program C:\Program.exe with credentials of other account
- To: Stefan Kanthak <stefan.kanthak@xxxxxxxx>
- Subject: Re: [FD] Beginner's error: import function of Windows Mail executes rogue program C:\Program.exe with credentials of other account
- From: Gynvael Coldwind <gynvael@xxxxxxxxxxx>
- Date: Fri, 25 Jul 2014 18:33:36 +0200
- Cc: fulldisclosure <fulldisclosure@xxxxxxxxxxxx>, Brandon Perry <bperry.volatile@xxxxxxxxx>, bugtraq@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=X6BMna3ggFCFt+bpdDy48SNZjMM37VNHe7wZ+XUvuKs=; b=fbq/z8AEaj5RtCWvnpcMsnTh066tHFS3k2kKOH+AZAfyE/X8pqMiB4LR+fhm047kHP XPFmAsRyMBEfEM6bQPOFZCkVa+NL4pweBaHlQoFTYqcMzGWWwX1vOySdEukiC0Y2SVUF q34ibDlV4N3RABOiplQUJhHiZp8gnatj7ZnY0uP2M4O85FX7JvhnbnMhEr1/1tHjdgWK lPMFqJmvDBhSQrUf0E17rEe97Crebm9GfPbbAvCZua5WB222IHbZwfk6gIa6XPi6V5Rq 9xYcbpIJGQJbPgPhb9oslESF3P8+wjDbY37Le5nQujBUY61OndWqLiAKRUqYUViDXXuq X+vg==
- In-reply-to: <FC3DBBE9236042E28DCFAF0A1AEB5E0D@celsius>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:email@example.com>
- List-subscribe: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
- References: <11173B4F533C439B950865E0ED7FDB7B@celsius> <CAOJKFBDjUGhess74_sC7Ep3mmC5Sgs2hou9Fe3OtfSFyLWdZ7g@mail.gmail.com> <8226A24155324301BA1D843EB17DFECA@celsius> <CAAnPYQ5yrsvyDtvFvMTr9s-sbdOLx3EpG5cy_KYaGwwYzW63firstname.lastname@example.org> <FC3DBBE9236042E28DCFAF0A1AEB5E0D@celsius>
- Sender: gynvael@xxxxxxxxx
So reading the links you provided I semi-agree with you. I think the
problem boils down to this part of your initial e-mail:
> PS: yes, it needs administrative privileges to write C:\Program.exe.
> BUT: all the user account(s) created during Windows setup have
> administrative privileges.
My point was (and it still stands) that if you have admin access, this
isn't a privilege escalation, as there is no "escalation" part here.
The links you provided use different wording, e.g.
"To exploit the vulnerability addressed by this update, attacker must
have permission to create a new file at the root of the system drive.
This makes of course more sense, though as I did mention above, it
does seem to require deliberate action from the administrator to
actually allow a non-admin user the WD (add file to directory)
privilege on C:\, which is rather rare I would say.
That being said, after thinking about it again I do see your point,
which I interpret at: even if an administrator grants all users WD/AD
on C:\, there should be no reason for him to worry, as there is no
reason to suspect files placed in C:\ are going to auto-execute on
* let's leave autoexec.bat/config.sys out of this, as that branch of
Windows is long dead and supported only FAT anyway
So let me change my initial e-mail to: Congratz on finding the bug :)
(BTW not sure why did you bring UAC into the discussion - did I miss
something? or was it just an argument you've heard before and wanted
to reply to it preventively?)
On Fri, Jul 25, 2014 at 2:50 PM, Stefan Kanthak <stefan.kanthak@xxxxxxxx> wrote:
> Gynvael Coldwind wrote:
>> Well it was discussed a couple of times recently on FD that this is a bug,
>> but it's not a privilege escalation.
>> If you are admin (and you did mention that it's a prerequisite) you can
>> execute code as other users anyway - so there's no *escalation* here.
>> Therefore it's not a security bug (unless you are using a super old version
>> of Windows with incorrect ACLs on c:\, which sounds like a bug in itself),
>> just a "normal" bug.
>> Not sure if FD is the right place for non-security bugs tbh.
> If these bugs were no security bugs: why does Microsoft then publish fixes
> for (at least some of) them via MSRC bulletins and Windows Update?
> See <https://technet.microsoft.com/library/security/ms13-058.aspx>
> or <https://technet.microsoft.com/library/security/ms13-034.aspx>
> Or pulls drivers whose setup routines show these bugs from Windows Update?
> See <http://seclists.org/fulldisclosure/2014/May/40>
> Also try to see these bugs as a blended threat:
> * during Windows setup Microsoft still creates all user accounts as
> * Microsoft sells its unsuspecting users UAC as a security feature, but does
> NOT inform them (or at least does not inform Joe Average) that UAC is not
> a security boundary and they should better use a restricted^Wstandard user
> account instead of the administrator account created during setup.
> * Joe Average will happily give consent to any program which presents an UAC
> prompt to him: he wants to get his work done, and this UAC prompt is just
> an annoyance. BTW: when Windows asks him for consent, this must be right?
>> On 25 Jul 2014 00:46, "Stefan Kanthak" <stefan.kanthak@xxxxxxxx> wrote:
>>> Brandon Perry wrote:
>>> > So, I am very curious how you are finding these? Have you automated this
>>> > is it manual hand work?
>>> All my Windows installations have
>>> <http://home.arcor.de/skanthak/download/SENTINEL.EXE> and
>>> <http://home.arcor.de/skanthak/download/SENTINEL.DLL> preinstalled as
>>> C:\Program.exe and C:\Program.dll, so I'm notified when some poorly written
>>> program tries to execute them.
>>> The sentinels call MessageBox() with "MB_SERVICE_NOTIFICATION", so the
>>> messages are recorded in the event log too where I can find them later.
>>> I also preinstall an APPINIT.DLL <https://support.microsoft.com/kb/197571>
>>> which logs all command lines of programs linked to USER32.DLL to a file:
>>> filtering for "C:\Program " at column 1 lists all the culprits.
>>> My third source is a SAFER.Log <
>>> where every execution attempt is logged, including the executables caller:
>>> filtering this for "\program.exe" or "\program.dll" lists all the culprits.
>>> So basically I just have to sit and wait...
>>> In case one of my customers was hit, and this did not happen during an
>>> installation, I have to interrogate them what they did... and hope they can
>>> remember with sufficient detail.
>>> But almost all hits occur during installations or the customization
>>> an installation (here it was the import of existing mails into a new
>>> so these are not so difficult to reproduce.
>>> PS: of course it helps if 8.3 names are disabled and "C:\Program Files\"
>>> be aliased as C:\Progra~1\
>>> To achieve this just run FORMAT C: /FS:NTFS /S:Disable in Windows PE
>>> before you start the installation of Windows 7 and later.
>>> For Windows NT5.x you'll have to use \i386\MIGRATE.INF
>>> > On Wed, Jul 23, 2014 at 2:50 PM, Stefan Kanthak <stefan.kanthak@xxxxxxxx
>>> > wrote:
>>> >> Hi @ll,
>>> >> the import function of Windows Mail executes a rogue program
>>> >> with the credentials of another account, resulting in a privilege
>>> >> escalation!
>>> Sent through the Full Disclosure mailing list
>>> Web Archives & RSS: http://seclists.org/fulldisclosure/