A little question about the IT pub theme

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

The theme of it pub is to take the science and technology route, so look beautiful, atmosphere.

But yesterday my website in Baidu Webmaster Tools detect vulnerabilities, found an XSS cross-site scripting loophole, finally resolved, take out to share under.

The reason is the search place:

The original search code is like this,

< form id= "Searchform" method= "get" action= < php bloginfo (' home ');? > "> < input type=" submit "value=" "id=" Searchsubmit "class=" button "> < input type=" text "id=" s "name=" s " Value= "" > </form >

Baidu gave the result no hint where, so again in Scanv test a bit, just know is here the problem.

The solution is simple:

The following code will be overwritten with the original search code.

< form id= "Searchform" method= "Get" action= "> < input type=" submit "value=" <? php the_search_query ();? > "id=" searchsubmit "class=" button "> < input type=" text "id=" s "name=" s "value=" "> </form>

In the use of Baidu detection and SCANV detection when the hint no loopholes.

Article from: http://www.51onb.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.