{"id":51,"date":"2006-10-19T19:41:33","date_gmt":"2006-10-20T01:41:33","guid":{"rendered":"http:\/\/www.directorycritic.com\/blog\/phpld-2x-security-problem\/"},"modified":"2006-10-19T19:41:33","modified_gmt":"2006-10-20T01:41:33","slug":"phpld-2x-security-problem","status":"publish","type":"post","link":"https:\/\/www.directorycritic.com\/blog\/phpld-2x-security-problem\/","title":{"rendered":"PHPLD 2.x Security Problem"},"content":{"rendered":"<p>I received an email this morning about a serious security flaw in phpLD 2.x. The flaw allows webmasters to submit html tags in the description and name fields. The problem is easily fixed using php&#8217;s strip_tags() function. Here is the fix, courtesy of <a target=\"_blank\" href=\"http:\/\/www.after5webdesign.com\/news\/?postid=10\" rel=\"noopener\">After 5 Web Design<\/a>:<\/p>\n<ol>\n<li><span style=\"font-weight: bold\">Open:<\/span><br \/>\nsubmit.php<\/li>\n<li><span style=\"font-weight: bold\">Find:<\/span><br \/>\n$data[&#8216;LAST_CHECKED&#8217;] = gmdate(&#8216;Y-m-d H:i:s&#8217;);<br \/>\n$data[&#8216;DATE_ADDED&#8217;] = gmdate(&#8216;Y-m-d H:i:s&#8217;);<br \/>\n$data[&#8216;DATE_MODIFIED&#8217;] = gmdate(&#8216;Y-m-d H:i:s&#8217;);<\/li>\n<li><span style=\"font-weight: bold\">Add:<\/span><br \/>\n$data[&#8216;DESCRIPTION&#8217;] = strip_tags($data[&#8216;DESCRIPTION&#8217;]);<br \/>\n$data[&#8216;TITLE&#8217;] = strip_tags($data[&#8216;TITLE&#8217;]);<br \/>\n$data[&#8216;OWNER_NAME&#8217;] = strip_tags($data[&#8216;OWNER_NAME&#8217;]);<\/li>\n<\/ol>\n<p>Simple. Now that this is out in the open, you should expect spammers to try and expolit it. So I suggest you patch this up as soon as possible. I know <a target=\"_blank\" href=\"http:\/\/www.after5webdesign.com\/news\/?postid=10\" rel=\"noopener\">Tim from After 5 Web Design<\/a> has notified the phpLD team, and a patch should be out soon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I received an email this morning about a serious security flaw in phpLD 2.x. The flaw allows webmasters to submit html tags in the description and name fields. The problem is easily fixed using php&#8217;s strip_tags() function. Here is the fix, courtesy of After 5 Web Design: Open: submit.php Find: $data[&#8216;LAST_CHECKED&#8217;] = gmdate(&#8216;Y-m-d H:i:s&#8217;); $data[&#8216;DATE_ADDED&#8217;] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/posts\/51"}],"collection":[{"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":0,"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.directorycritic.com\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}