News for hackers. Stuff that matters.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by oofabz on Tuesday September 25, 2012 @07:39AM (#4569777)
+++ATH0
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by joezydeco on Tuesday September 25, 2012 @09:52AM (#4570304)
Hah! A friend of mine back in the BBS days had a last name that ended in a certain pair of characters that would trigger a zmodem download. Those were fun times, weren't they?
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by drewwwwww on Tuesday September 25, 2012 @07:45AM (#4569799)
exactly what i thought of! except even worse.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by gulbrandr on Tuesday September 25, 2012 @08:21AM (#4569929)
Can you explain this please?
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by dasil003 on Tuesday September 25, 2012 @08:27AM (#4569953)
This was a troll that would make dial-up modems hang up back in the day. Sort of like convincing someone to do `sudo rm -rf /`.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by mikezupan on Tuesday September 25, 2012 @08:29AM (#4569967)
That is the modem hangup string. You could send a icmp packet to a person containing just that and their modem would drop the connection. So it was common in IRC for people to ping a whole channel with that and have a bunch of people quit right after.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by quesera on Tuesday September 25, 2012 @08:43AM (#4570018)
IRC pings don't use ICMP, but that could work if IRC clients would repeat data received without escaping first. Or if unaware users saw it come over the channel and tried to type it themselves.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by rachelbythebay on Tuesday September 25, 2012 @08:53AM (#4570059)
Considering a CTCP request is just a PRIVMSG with ^A wrapped around the "command word", and a CTCP reply is just a NOTICE with the same ^A thing, you can make them "say" just about anything. It's unclear why an IRC client would need to worry about "escaping" +++, except if it's specifically been designed for people with bad modems.

Those of us with good modems back in the dialup days just laughed at this insanity. Hayes used to put "+++AT" in their press releases after a certain point just to trip up any noncompliant systems which may have passed it along.

http://en.wikipedia.org/wiki/Time_Independent_Escape_Sequenc...

Re:USSD code to factory data reset a Galaxy S3 can be trigge... by quesera on Tuesday September 25, 2012 @09:03AM (#4570085)
Sorry, I should have been more clear. The modem could also guard the sequence by requiring interstitial pauses, but I believe this was patented by Hayes in the 80s.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by jasomill on Wednesday September 26, 2012 @04:36PM (#4577893)
Indeed it was, as the referenced Wikipedia article notes; Hayes charged $1/unit for a patent license. As soon as the primary application of modems became Internet access, IP encapsulation protocols like PPP could have worked around the problem, but, AFAIK, never did.
Re:USSD code to factory data reset a Galaxy S3 can be trigge... by thursley on Tuesday September 25, 2012 @08:26AM (#4569944)
This was/is an infamous modem vulnerability: http://www.securityspace.com/smysecure/catid.html?id=10020

It could force a modem to hangup and redial a number.

Re:USSD code to factory data reset a Galaxy S3 can be trigge... by quesera on Tuesday September 25, 2012 @08:55AM (#4570062)
Not a vulnerability, really. And the redial was a separate process, possibly automatic. (Edit: OK, yes it is. It's more a protocol vulnerability and a data handling weakness -- the modems just implemented the protocol, but that's just semantics.. )

+++ is the Hayes command set string to enter command mode. AT is the prefix for commands, and H0 means "set switchhook to zero", i.e. "hang up". (H1 means "go off hook", DT means dial using touch tones, DP means dial, using pulses, etc).

The first two components (+++ and AT) are configurable, but no one ever changed them.

This is really just a weakness of in-band signaling. For this to work, you need a human on the modem side to type the escape and command strings -- or a program on the modem side that takes unfiltered data from the network and sends it back out without escaping.

That's the vulnerability. Accepting data from untrusted sources will always take you somewhere bad, and there are much worse things you can do to modems than make them hang up. If IRC clients would parrot tainted data back up the serial line, great havoc could be caused.