From aeeae26d1caf1f8b01c9bbd3b5d063c073e0d60f Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Wed, 9 Nov 2011 21:17:47 -0800 Subject: [PATCH] Critical security patch--re-enabling signature and downgrade checking. When merging Uli Kusterer's branch, we left enabled a preprocessor flag that would disable DSA checking and downgrade prevention. That should not have been merged into master. My apologies to the community for not noticing this sooner. --- SUConstants.h | 4 ++-- SUUpdater.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SUConstants.h b/SUConstants.h index b276589c..4ef1ebb4 100644 --- a/SUConstants.h +++ b/SUConstants.h @@ -15,11 +15,11 @@ // ----------------------------------------------------------------------------- // Turn off DSA signature check (practically invites man-in-the-middle attacks): -#define ENDANGER_USERS_WITH_INSECURE_UPDATES 1 +#define ENDANGER_USERS_WITH_INSECURE_UPDATES 0 // Sparkle usually doesn't allow downgrades as they're usually accidental, but // if your app has a downgrade function or URL handler, turn this on: -#define PERMIT_AUTOMATED_DOWNGRADES 1 +#define PERMIT_AUTOMATED_DOWNGRADES 0 // If your app file on disk is named "MyApp 1.1b4", Sparkle usually updates it // in place, giving you an app named 1.1b4 that is actually 1.2. Turn the diff --git a/SUUpdater.m b/SUUpdater.m index 82aed759..7d426118 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -31,8 +31,8 @@ - (void)updateDriverDidFinish:(NSNotification *)note; - (NSURL *)parameterizedFeedURL; --(void) notifyWillShowAlert; --(void) notifyDidShowAlert; +-(void) notifyWillShowModalAlert; +-(void) notifyDidShowModalAlert; @end