{"id":25,"date":"2014-04-11T12:59:21","date_gmt":"2014-04-11T07:59:21","guid":{"rendered":"http:\/\/www.chmosama.com\/blog\/?p=25"},"modified":"2017-12-24T15:17:37","modified_gmt":"2017-12-24T10:17:37","slug":"options-method-found-in-c2fo","status":"publish","type":"post","link":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/","title":{"rendered":"OPTIONS Method Found in C2FO"},"content":{"rendered":"<p style=\"text-align: justify;\">Ch. Muhammad Osama, an independent vulnerability researcher has discovered a OPTIONS Method Vulnerability\u00a0in C2FO\u00a0website www.c2fo.com, which can be exploited by an attacker to gain additional information about the target system.<\/p>\n<p style=\"text-align: justify;\"><strong>OPTIONS Method\u00a0:-<\/strong><\/p>\n<p style=\"text-align: justify;\">HTTP offers a number of methods that can be used to perform actions on the web server. Many of theses methods are designed to aid developers in deploying and testing HTTP applications. These HTTP methods can be used for nefarious purposes if the web server is misconfigured. Additionally, Cross Site Tracing (XST), a form of cross site scripting using the server&#8217;s HTTP TRACE method, is examined.<br \/>\nWhile GET and POST are by far the most common methods that are used to access information provided by a web server, the Hypertext Transfer Protocol (HTTP) allows several other (and somewhat less known) methods. RFC 2616 (which describes HTTP version 1.1 which is the standard today) defines the following eight methods:<\/p>\n<ul style=\"text-align: justify;\">\n<li>HEAD<\/li>\n<li>GET<\/li>\n<li>POST<\/li>\n<li>PUT<\/li>\n<li>DELETE<\/li>\n<li>TRACE<\/li>\n<li>OPTIONS<\/li>\n<li>CONNECT<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Some of these methods can potentially pose a security risk for a web application, as they allow an attacker to modify the files stored on the web server and, in some scenarios, steal the credentials of legitimate users. More specifically, the methods that should be disabled are the following:<\/p>\n<ul style=\"text-align: justify;\">\n<li>PUT: This method allows a client to upload new files on the web server. An attacker can exploit it by uploading malicious files (e.g.: an asp file that executes commands by invoking cmd.exe), or by simply using the victim&#8217;s server as a file repository.<\/li>\n<li>DELETE: This method allows a client to delete a file on the web server. An attacker can exploit it as a very simple and direct way to deface a web site or to mount a DoS attack.<\/li>\n<li>CONNECT: This method could allow a client to use the web server as a proxy.<\/li>\n<li>TRACE: This method simply echoes back to the client whatever string has been sent to the server, and is used mainly for debugging purposes. This method, originally assumed harmless, can be used to mount an attack known as Cross Site Tracing, which has been discovered by Jeremiah Grossman (see links at the bottom of the page).<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">If an application needs one or more of these methods, such as REST Web Services (which may require PUT or DELETE), it is important to check that their usage is properly limited to trusted users and safe conditions.<\/p>\n<p style=\"text-align: justify;\"><strong>Proof of Concept :-<\/strong><\/p>\n<p>Request:-<br \/>\nOPTIONS \/wp-content\/themes\/theme\/js\/ HTTP\/1.1<br \/>\nHost: c2fo.com<br \/>\nUser-Agent: Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko\/20100101 Firefox\/28.0<br \/>\nAccept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8<br \/>\nAccept-Language: en-US,en;q=0.5<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nConnection: keep-alive<\/p>\n<p>Response:-<br \/>\nHTTP\/1.1 200 OK<br \/>\nConnection: keep-alive<br \/>\nDate: Wed, 02 Apr 2014 17:21:31 GMT<br \/>\nServer: WP Engine\/6.0.2<br \/>\nKeep-Alive: timeout=20<br \/>\nX-Type: default<br \/>\nX-Frame-Options: SAMEORIGIN<br \/>\nAllow: GET,HEAD,POST,OPTIONS,TRACE<br \/>\nContent-Length: 0<br \/>\nContent-Type: httpd\/unix-directory<\/p>\n<p style=\"text-align: justify;\"><strong>Conclusion :-<\/strong><\/p>\n<p style=\"text-align: justify;\">This vulnerability has been confirmed and patched by C2FO\u00a0Security Team. I would like to thank them for their quick response to my report.<\/p>\n<p style=\"text-align: center;\"><strong>Status : Fixed!<\/strong><br \/>\n<strong>Hall of Fame : Yes!<\/strong><br \/>\n<strong>Bounty: No!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ch. Muhammad Osama, an independent vulnerability researcher has discovered a OPTIONS Method Vulnerability\u00a0in C2FO\u00a0website www.c2fo.com, which can be exploited by an attacker to gain additional information about the target system. OPTIONS Method\u00a0:- HTTP offers a number of methods that can be used to perform actions on the web server. Many [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":26,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[11,12,6,8],"class_list":["post-25","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-poc","tag-c2fo","tag-options-method","tag-poc","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama\" \/>\n<meta property=\"og:description\" content=\"Ch. Muhammad Osama, an independent vulnerability researcher has discovered a OPTIONS Method Vulnerability\u00a0in C2FO\u00a0website www.c2fo.com, which can be exploited by an attacker to gain additional information about the target system. OPTIONS Method\u00a0:- HTTP offers a number of methods that can be used to perform actions on the web server. Many [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Choudhary Muhammad Osama\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/chmosama\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/chmosama\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-11T07:59:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-24T10:17:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Choudhary Muhammad Osama\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ChMuhammadOsama\" \/>\n<meta name=\"twitter:site\" content=\"@ChMuhammad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Choudhary Muhammad Osama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/\",\"url\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/\",\"name\":\"OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama\",\"isPartOf\":{\"@id\":\"https:\/\/www.chmosama.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg\",\"datePublished\":\"2014-04-11T07:59:21+00:00\",\"dateModified\":\"2017-12-24T10:17:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/1e5073e7a2fb381ec0503b87b16ba4c7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage\",\"url\":\"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg\",\"contentUrl\":\"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg\",\"width\":1280,\"height\":720,\"caption\":\"c2fo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.chmosama.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OPTIONS Method Found in C2FO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/#website\",\"url\":\"https:\/\/www.chmosama.com\/blog\/\",\"name\":\"Blog - Choudhary Muhammad Osama\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.chmosama.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/1e5073e7a2fb381ec0503b87b16ba4c7\",\"name\":\"Choudhary Muhammad Osama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3d3ebe72135073f739b9d6cc1c93ea0a0f40e9393eb5305a78f0d70435ad2f6c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3d3ebe72135073f739b9d6cc1c93ea0a0f40e9393eb5305a78f0d70435ad2f6c?s=96&d=mm&r=g\",\"caption\":\"Choudhary Muhammad Osama\"},\"description\":\"This is Choudhary Muhammad Osama, a highly accomplished Penetration Tester, Security Analyst and Linux Administration enthusiast, with extensive experience in implementing, maintaining, securing and pentesting web applications and networks.\",\"sameAs\":[\"https:\/\/www.chmosama.com\",\"https:\/\/www.facebook.com\/chmosama\",\"https:\/\/x.com\/ChMuhammadOsama\"],\"url\":\"http:\/\/www.chmosama.com\/blog\/author\/chmosama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/","og_locale":"en_US","og_type":"article","og_title":"OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama","og_description":"Ch. Muhammad Osama, an independent vulnerability researcher has discovered a OPTIONS Method Vulnerability\u00a0in C2FO\u00a0website www.c2fo.com, which can be exploited by an attacker to gain additional information about the target system. OPTIONS Method\u00a0:- HTTP offers a number of methods that can be used to perform actions on the web server. Many [&hellip;]","og_url":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/","og_site_name":"Blog - Choudhary Muhammad Osama","article_publisher":"https:\/\/www.facebook.com\/chmosama","article_author":"https:\/\/www.facebook.com\/chmosama","article_published_time":"2014-04-11T07:59:21+00:00","article_modified_time":"2017-12-24T10:17:37+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg","type":"image\/jpeg"}],"author":"Choudhary Muhammad Osama","twitter_card":"summary_large_image","twitter_creator":"@ChMuhammadOsama","twitter_site":"@ChMuhammad","twitter_misc":{"Written by":"Choudhary Muhammad Osama","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/","url":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/","name":"OPTIONS Method Found in C2FO - Blog - Choudhary Muhammad Osama","isPartOf":{"@id":"https:\/\/www.chmosama.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage"},"image":{"@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage"},"thumbnailUrl":"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg","datePublished":"2014-04-11T07:59:21+00:00","dateModified":"2017-12-24T10:17:37+00:00","author":{"@id":"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/1e5073e7a2fb381ec0503b87b16ba4c7"},"breadcrumb":{"@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#primaryimage","url":"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg","contentUrl":"https:\/\/www.chmosama.com\/blog\/wp-content\/uploads\/2017\/08\/C2FO.jpg","width":1280,"height":720,"caption":"c2fo"},{"@type":"BreadcrumbList","@id":"https:\/\/www.chmosama.com\/blog\/options-method-found-in-c2fo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.chmosama.com\/blog\/"},{"@type":"ListItem","position":2,"name":"OPTIONS Method Found in C2FO"}]},{"@type":"WebSite","@id":"https:\/\/www.chmosama.com\/blog\/#website","url":"https:\/\/www.chmosama.com\/blog\/","name":"Blog - Choudhary Muhammad Osama","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.chmosama.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/1e5073e7a2fb381ec0503b87b16ba4c7","name":"Choudhary Muhammad Osama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.chmosama.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3d3ebe72135073f739b9d6cc1c93ea0a0f40e9393eb5305a78f0d70435ad2f6c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3d3ebe72135073f739b9d6cc1c93ea0a0f40e9393eb5305a78f0d70435ad2f6c?s=96&d=mm&r=g","caption":"Choudhary Muhammad Osama"},"description":"This is Choudhary Muhammad Osama, a highly accomplished Penetration Tester, Security Analyst and Linux Administration enthusiast, with extensive experience in implementing, maintaining, securing and pentesting web applications and networks.","sameAs":["https:\/\/www.chmosama.com","https:\/\/www.facebook.com\/chmosama","https:\/\/x.com\/ChMuhammadOsama"],"url":"http:\/\/www.chmosama.com\/blog\/author\/chmosama\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":3,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":204,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/posts\/25\/revisions\/204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/media\/26"}],"wp:attachment":[{"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chmosama.com\/blog\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}