{"id":202784,"date":"2013-11-19T23:34:02","date_gmt":"2013-11-19T19:34:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=202784"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=202784","title":{"rendered":"<span class=\"post_title\">XSS&#8217;\u0438\u043c iOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u043e\u0444\u0442\u0430 \u043e\u0442 Facebook, Google, \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<h6>\u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0438\u0447\u0435-\u0431\u0430\u0433 \u0441\u0445\u043e\u0436 \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0439 \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/company\/dsec\/blog\/191148\/\">\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 Facebook \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430<\/a> \u2014 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u043e\u0433\u043b\u0430\u0441\u043a\u0443. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0430\u0448\u0435\u043b \u044f \u0435\u0433\u043e \u0441\u0430\u043c, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0451\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230;<\/h6>\n<p>  <\/p>\n<h4># intro<\/h4>\n<p>  \u0422\u0435\u043c\u043d\u043e\u0439, \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0439 \u0438 \u0434\u043e\u0436\u0434\u043b\u0438\u0432\u043e\u0439 \u041f\u0438\u0442\u0435\u0440\u0441\u043a\u043e\u0439 \u043d\u043e\u0447\u044c\u044e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u044f \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u0431\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442 Facebook, Google, \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u0435\u0433\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>1\/2 \u0418\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u044f iOS<\/h5>\n<p>  \u0418\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 iOS \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043b\u0435\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435, \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0443 \u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432. \u041c\u044b \u0441\u0430\u043c\u0438 \u0432\u0441\u0435 \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u0435\u043c \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c \u0438 \u0432\u044b\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c\u0443 \u044e\u0437\u0435\u0440\u0443 \u0432 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 iOS \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432\u044b\u043a\u0430\u0447\u0438\u0432\u0430\u044e\u0442 \u0441\u0435\u0431\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u0442\u0438\u043f\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u0440\u0442\u044b \u0433\u043e\u0440\u043e\u0434\u043e\u0432, \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0433\u0440\u044b \u0438 \u0442.\u043f.), \u043d\u043e \u043e\u043d\u0438 \u0432\u0441\u0435 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<h5>2\/2 \u041f\u0440\u043e HTTP<\/h5>\n<p>  \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTP \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0430\u043c\u0443\u044e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c. \u0412\u0441\u0451 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c plain \u0442\u0435\u043a\u0441\u0442\u043e\u043c. \u0417\u0430\u043f\u0440\u043e\u0441\/\u043e\u0442\u0432\u0435\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a (header) \u0438 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e) \u0442\u0435\u043b\u043e (body). \u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u043d\u0438 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0442\u0440\u043e\u043a\u0438 (\u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443). \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f habrahabr.ru:<\/p>\n<pre><code class=\"html\">GET \/ HTTP\/1.1 Host: habrahabr.ru User-Agent: Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko\/20100101 Firefox\/25.0 Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8 Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive <\/code><\/pre>\n<p>  \u041e\u0442\u0432\u0435\u0442:  <\/p>\n<pre><code class=\"html\">HTTP\/1.1 200 OK Server: nginx Date: Tue, 19 Nov 2013 13:48:02 GMT Content-Type: text\/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=25 X-Powered-By: PHP\/5.4.21 X-Frame-Options: SAMEORIGIN Content-Encoding: gzip  &lt;!DOCTYPE html&gt; &lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; xml:lang=&quot;ru&quot;&gt;   &lt;head&gt;     &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;     &lt;meta name = &quot;viewport&quot; content = &quot;width = 1080&quot;&gt;     &lt;title&gt;\u041b\u0443\u0447\u0448\u0438\u0435 \u0437\u0430 \u0441\u0443\u0442\u043a\u0438 \/ \u041f\u043e\u0441\u0442\u044b \/ \u0425\u0430\u0431\u0440\u0430\u0445\u0430\u0431\u0440&lt;\/title&gt; ... &lt;\/html&gt; <\/code><\/pre>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442\u0435, \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u0432\u044b\u0448\u0435, \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u2014 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442. \u0422\u0430\u043a \u0432\u043e\u0442, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438. \u041e\u043d\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u043e\u0431\u0449\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u043a\u0430\u043a \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443 (\u0441\u0442\u0430\u0442\u0443\u0441 \u043e\u0442\u0432\u0435\u0442\u0430 (\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0438 \u0442.\u043f.), \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043b\u0438 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0432\u043e \u0444\u0440\u0435\u0439\u043c\u0435 \u0438 \u0440\u0430\u0437\u043d\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0422\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<\/p>\n<pre><code class=\"html\">Content-Disposition: attachment <\/code><\/pre>\n<p>  \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0438\u0441\u0430\u043d \u0432 RFC 2183 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c  <\/p>\n<blockquote><p>2.2 The Attachment Disposition Type<\/p>\n<p>  Bodyparts can be designated `attachment&#8217; to indicate that they are<br \/>   separate from the main body of the mail message, and that <b>their<br \/>   display should not be automatic<\/b>, but contingent upon some further<br \/>   action of the user. The MUA might instead present the user of a<br \/>   bitmap terminal with an iconic representation of the attachments, or,<br \/>   on character terminals, with a list of attachments from which the<br \/>   user could select for viewing or storage.  <\/p><\/blockquote>\n<p>  \u0412 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a, \u0447\u0442\u043e \u0432\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0435\u0441\u044c \u043a \u0444\u0430\u0439\u043b\u0443, \u0430 \u043e\u043d \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f (\u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438) \u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0435\u0433\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (<i>their display should not be automatic<\/i>).<\/p>\n<h4># exploit<\/h4>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043c \u0434\u0432\u0430 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0432\u044b\u0448\u0435. \u041c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0441 iOS \u043a \u0444\u0430\u0439\u043b\u0443, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e <b>Content-Disposition: attachment<\/b>. <i>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0435<\/i>. \u0412\u0440\u043e\u0434\u0435 \u0444\u0430\u0439\u043b \u043d\u0430\u0434\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c (\u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0438 \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u044e\u0437\u0435\u0440\u044b, \u0432\u0438\u0434\u0435\u0442\u044c \u043e\u043a\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e), \u043d\u043e \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u2014 \u0432\u0435\u0434\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u0442\u043e \u0438 \u043d\u0435\u0442. \u0427\u0442\u043e \u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0432 Apple? \u041e\u043d\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044e\u0442 \u0432 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c Safari <b>Content-Disposition<\/b> \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0444\u0430\u0439\u043b \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435.<br \/>  \u0427\u0442\u043e \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438? \u0412 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 FB, Gmail, VK, \u0432\u0435\u0437\u0434\u0435 \u0435\u0441\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u0415\u0441\u043b\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, html \u0438\u043b\u0438 svg \u0444\u0430\u0439\u043b, \u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 webview (\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a Safari) \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0433\u043e \u0438 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442.<\/p>\n<p>  <b>xss.svg<\/b>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt; &lt;!DOCTYPE svg PUBLIC &quot;-\/\/W3C\/\/DTD SVG 1.1\/\/EN&quot; &quot;http:\/\/www.w3.org\/Graphics\/SVG\/1.1\/DTD\/svg11.dtd&quot;&gt;  &lt;svg version=&quot;1.1&quot; baseProfile=&quot;full&quot; xmlns=&quot;http:\/\/www.w3.org\/2000\/svg&quot;&gt;    &lt;polygon id=&quot;triangle&quot; points=&quot;0,0 0,50 50,0&quot; fill=&quot;#009900&quot; stroke=&quot;#004400&quot;\/&gt;    &lt;script type=&quot;text\/javascript&quot;&gt;    alert('Redirect to google.ru...');    document.location=&quot;http:\/\/google.ru&quot;;    &lt;\/script&gt; &lt;\/svg&gt; <\/code><\/pre>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, Apple, \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u0438\u0442\u044c \u0438 \u043f\u044b\u0442\u0430\u044f\u0441\u044c \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0436\u0438\u0437\u043d\u044c \u0441\u0432\u043e\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 iOS \u0438, \u0432\u0441\u0451-\u0442\u0430\u043a\u0438, \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a RFC, \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430: \u00ab\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d, \u043d\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435\u00bb, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u043c\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u043c. \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435 \u2014 <a href=\"https:\/\/pp.vk.me\/c425628\/v425628003\/44e7\/5nRllE5gOs0.jpg\">Facebook, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/a>.<\/p>\n<h4># demo<\/h4>\n<p>  <\/p>\n<table>\n<tr>\n<td>GMail<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f7a\/4c0\/d74\/f7a4c0d748f97e70cff9106893c2acc2.jpg\"\/><\/td>\n<td> <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/827\/38a\/6d2\/82738a6d2751bb0e41b11e9e29692513.jpg\"\/><\/td>\n<\/tr>\n<tr>\n<td>Facebook<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/de9\/568\/f64\/de9568f64b0e9563b95e93513e7003b7.jpg\"\/><\/td>\n<td><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/9a0\/c54\/e7d\/9a0c54e7d87e227c5825a0c519fe121f.jpg\"\/><\/td>\n<\/tr>\n<tr>\n<td>VK<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/65a\/9c5\/93b\/65a9c593bae34575f3b727a14add7f6f.jpg\"\/><\/td>\n<td><img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/19f\/1cc\/c50\/19f1ccc50a625549b107bccccf236fbe.jpg\"\/><\/td>\n<\/tr>\n<\/table>\n<p>  <\/p>\n<h4># impact<\/h4>\n<p>  \u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, javascript \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0434\u043e\u043c\u0435\u043d\u0435, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043e\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e. \u042d\u0442\u043e\u0442 \u0434\u043e\u043c\u0435\u043d \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d \u043e\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0435\u0430\u043a\u0446\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Google \u043d\u0430 \u044d\u0442\u043e \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0430\u044f (\u0442.\u0435. \u043d\u0438\u043a\u0430\u043a\u0430\u044f)  <\/p>\n<blockquote><p> The domain in which you&#8217;re triggering the XSS \u2014 googleuserconent.com \u2014 is specifically meant as a compartmentalized \u00absandbox\u00bb for various types of potentially unsafe, user-controlled content. This domain is isolated from any sensitive content due to the same-origin policy.  <\/p><\/blockquote>\n<p>  \u0427\u0442\u043e \u0438 \u0432\u0435\u0440\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u043d\u0451\u043c \u043c\u043e\u0436\u043d\u043e \u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 <a href=\"https:\/\/producer.googleusercontent.com\/producer\/attachment\/CAAqBwgKMKGGygQw7_1E-xss.swf?a=eval&amp;c=alert(document.domain)\">\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c XSS<\/a>.<\/p>\n<p>  \u041d\u043e \u0435\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u2014 \u0444\u0438\u0448\u0438\u043d\u0433 \u0438\u043b\u0438 DoS (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0441 0day \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0434\u0435\u0432\u0430\u0435\u0442 \u0432\u0441\u0435(?) \u0432\u0435\u0440\u0441\u0438\u0438 iOS \u2014 <a href=\"http:\/\/habrahabr.ru\/company\/dsec\/blog\/201602\/\">habrahabr.ru\/company\/dsec\/blog\/201602\/<\/a>.<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 IOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0438 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0432\u0435\u0431-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u0432\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438. \u0412\u0435\u0434\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0438\u0447\u0435-\u0431\u0430\u0433 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0438 \u0432 \u043b\u044e\u0431\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 iOS (\u0432\u0435\u0434\u044c \u0432\u0441\u0435 \u043e\u043d\u0438 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 Safari).    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/dsec\/blog\/202784\/\"> http:\/\/habrahabr.ru\/company\/dsec\/blog\/202784\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<h6>\u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0438\u0447\u0435-\u0431\u0430\u0433 \u0441\u0445\u043e\u0436 \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0439 \u043f\u0440\u043e <a href=\"http:\/\/habrahabr.ru\/company\/dsec\/blog\/191148\/\">\u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 Facebook \u043e\u0442 \u043b\u044e\u0431\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430<\/a> \u2014 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0448\u0438\u0440\u043e\u043a\u0443\u044e \u043e\u0433\u043b\u0430\u0441\u043a\u0443. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0442\u0430\u043a, \u0447\u0442\u043e \u043d\u0430\u0448\u0435\u043b \u044f \u0435\u0433\u043e \u0441\u0430\u043c, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043d\u0430\u0448\u0435\u043b \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0451\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443&#8230;<\/h6>\n<p>  <\/p>\n<h4># intro<\/h4>\n<p>  \u0422\u0435\u043c\u043d\u043e\u0439, \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0439 \u0438 \u0434\u043e\u0436\u0434\u043b\u0438\u0432\u043e\u0439 \u041f\u0438\u0442\u0435\u0440\u0441\u043a\u043e\u0439 \u043d\u043e\u0447\u044c\u044e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u044f \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439 \u0431\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u0432\u0435\u0440\u0436\u0435\u043d\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442 Facebook, Google, \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043e\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u0435\u0433\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u043d\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-202784","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202784"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/202784\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}