3 ms·
The article tells app maintainers that: > To fix and avoid RCE in your app, you need to edit Info.plist file and replace http -> https for SUFeedURL key. So t
by snowwrestler 11y ago
The article tells app maintainers that:
> To fix and avoid RCE in your app, you need to edit Info.plist file and replace http -> https for SUFeedURL key.
So to check for vulnerable apps I just grepped for SUFeedURL in my Applications folder:
snowwrestler$ grep -R SUFeedURL /Applications/*
Binary file /Applications/Coda 2.app/Contents/Frameworks/Sparkle.framework/Sparkle matches
Binary file /Applications/Coda 2.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle matches
Binary file /Applications/Coda 2.app/Contents/Frameworks/Sparkle.framework/Versions/Current/Sparkle matches
/Applications/Coda 2.app/Contents/Info.plist: <key>SUFeedURL</key>
Then I looked in that Info.plist file and saw:
<key>SUFeedURL</key>
<string>https://www.panic.com/updates/update.php</string>
HTTPS, so I think I am good, right?
If I found HTTP strings I could protect myself by just setting them to HTTPS. Either the app would update over HTTPS (if available), or the update mechanism would just break. I'd have to manually check for updates though.
- rorykoehler 11y agoThanks for this. Vulnerable apps I found on my system: - Macdown - Transmission - XQuartz 2 of the apps I checked (Sequel Pro and Stuffit Expander) had empty plist files which seems odd. Initially I thought I had maybe updated the software and not opened it since so the file wasn't yet generated but in this case the grep wouldn't have found a plist file at all. Do you know why they would be empty?
- makecheck 11y agoJust as a matter of efficiency...a recursive "grep" to hit every file in the tree is going to take far longer than it needs to. The "find" command knows how to be selective. Try something like this: find /Applications -name '*.plist' -exec grep SUFeedURL {} +
- zZorgz 11y agoBetter to alter the user defaults key SUFeedURL for an app than break its code signature by altering its info.plist file. Sparkle looks at the user defaults first anyway. Aside it's still not bullet proof because an app can override the feed URL programmatically. Another idea is just replacing the Sparkle framework inside an app with the latest version.