{"id":49,"date":"2012-06-19T12:09:02","date_gmt":"2012-06-19T10:09:02","guid":{"rendered":"http:\/\/www.enye-sec.org\/en\/?p=49"},"modified":"2012-06-28T13:23:04","modified_gmt":"2012-06-28T11:23:04","slug":"basekit-bug-xss-advisory","status":"publish","type":"post","link":"https:\/\/www.enye-sec.org\/en\/advisories\/basekit-bug-xss-advisory\/","title":{"rendered":"BaseKit bug XSS Advisory"},"content":{"rendered":"<p>I contacted <a title=\"BaseKit\" href=\"http:\/\/www.basekit.com\" target=\"_blank\">BaseKit.com<\/a> company 45 days ago to warn about a bug XSS (<em style=\"font-style: italic;\">Cross Site Scripting<\/em>) in their systems. They told me that in 15 days it would be solved, <strong>but have passed 45 days and the error still exists<\/strong>, so I&#8217;ve decided to publish it.<\/p>\n<p><a title=\"BaseKit\" href=\"http:\/\/www.basekit.com\" target=\"_blank\">BaseKit.com<\/a> is a company that sells a service for creating online websites easily with a visual editor. On their website they advertise that <strong>have been created 228,000 web pages<\/strong> using their system.<\/p>\n<p>Their system uses HTTP rewrite module, and therefore never reached an HTTP error number 404. All URL&#8217;s are injected into the source code as follows:<\/p>\n<blockquote style=\"margin-top: 5px; margin-bottom: 13px;\"><p>&lt;link rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d href=\u201dhttp:\/\/DOMAIN.COM\/<strong>PATH<\/strong>?startcss=true\u201d \/&gt;<\/p><\/blockquote>\n<p><strong>PATH<\/strong> is not filtered in any way, so you can put HTML code in URL and it will be copied to source code.<\/p>\n<p>For example, with a URL as:<\/p>\n<blockquote style=\"margin-top: 5px; margin-bottom: 13px;\"><p>http:\/\/DOMAIN.COM\/\u201d&gt;&lt;script&gt;alert(document.cookie);&lt;\/script&gt;<\/p><\/blockquote>\n<p>It will be copied as:<\/p>\n<blockquote style=\"margin-top: 5px; margin-bottom: 13px;\"><p>&lt;link rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d href=\u201dhttp:\/\/DOMAIN.COM\/\u201d&gt;&lt;script&gt;alert(document.cookie);&lt;\/script&gt;?startcss=true\u201d \/&gt;<\/p><\/blockquote>\n<p>So you<strong> can execute javascript code<\/strong>.<\/p>\n<p>On their website <a title=\"BaseKit\" href=\"http:\/\/www.basekit.com\" target=\"_blank\">BaseKit.com<\/a> you can see examples of pages created with your system, you can check the bug in a real website with next link:<\/p>\n<p><a href=\"http:\/\/www.instalcesped.com\/%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C\/script%3E\" target=\"_blank\">http:\/\/www.instalcesped.com\/\u201d&gt;&lt;script&gt;alert(document.cookie);&lt;\/script&gt;<\/a><\/p>\n<div style=\"height: 1px;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I contacted BaseKit.com company 45 days ago to warn about a bug XSS (Cross Site Scripting) in their systems. They told me that in 15 days it would be solved, but have passed 45 days and the error still exists, so I&#8217;ve decided to publish it. BaseKit.com is a company that sells a service for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[31,32,30,29,24,28],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-advisories","tag-advisory","tag-basekit","tag-bug","tag-cross-site-scripting","tag-raise","tag-xss"],"_links":{"self":[{"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/posts\/49"}],"collection":[{"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/comments?post=49"}],"version-history":[{"count":19,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/posts\/49\/revisions\/74"}],"wp:attachment":[{"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.enye-sec.org\/en\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}