修的了电脑 敲得了代码
     写得了前端 稳得住后端

WORDPRESS页面异常导致本地路径泄漏-Fatal error: Call to undefined

在使用百度云观测的时候,弹出了网站的安全警告:页面异常导致本地路径泄漏,还给出了漏洞页面的地址:http://*.com/wp-content/themes/uptown/,指向了本博客使用的主题目录首页文件index.php。点开这个链接,显示了一个错误信息,其中包含了博客所在主机的本地磁盘路径。

1
2
Fatal error: Call to undefined function get_header() in
/home/public_html/blog/wp-content/themes/uptown/index.php on line 4

这明显是一个调试信息,指明了访问该文件发生了错误,并且贴出来主机的本地路径。我接着试验了wordpress主题目录和include目录下的其他文件,出现了相同的本地路径泄露情况。

一般的,当通过浏览器访问如下文件时,文件没有对访问权限进行验证,会引发Call to undefined function调用未定义函数错误,当未禁用错误报告或错误显示时会导致网站绝对路径泄露。

1
2
3
4
5
6
7
8
9
10
11
12
wp-admin/admin-functions.php
wp-admin/upgrade-functions.php
wp-includes/class-snoopy.php
wp-includes/registration.php
wp-includes/rss-functions.php
wp-includes/rss.php
wp-includes/theme-compat/comments-popup.php
wp-includes/theme-compat/comments.php
wp-includes/theme-compat/footer.php
wp-includes/theme-compat/header.php
wp-includes/theme-compat/sidebar.php
wp-includes/registration-functions.php

对于这样的问题,只要禁止显示调试错误就可以了。对于PHP+Apache的wordpress网站,有以下三种修补方式:

  • 修改php.ini中的配置行: display_errors = off
  • 修改httpd.conf/apache2.conf中的配置行: php_flag display_errors off
  • 修改php脚本,增加代码行: ini_set(‘display_errors’, false);

每一种方法都可以解决Wordpress页面异常导致本地路径泄漏的问题。

未经允许不得转载:流云溪|码农 » WORDPRESS页面异常导致本地路径泄漏-Fatal error: Call to undefined

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #50

    With thanks, Good stuff!

    l-arginine and herbal viagra viagra saved chrismas
    viagra for sale uk
    viagra enhancements – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice8个月前 (07-29)
  2. #49

    You made your point!

    viagra teenager michael smidt old viagra creep
    viagra for sale uk
    viagra explained – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice8个月前 (07-27)
  3. #48

    With thanks. Useful information.

    ingrediants in viagra take viagra and cialis
    viagra for sale uk
    when was viagra released – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice8个月前 (07-27)
  4. #47

    Valuable tips. Cheers.

    viagra 50mg soft tab generic compare cialis viagra levitra
    viagra 100mg
    search viagra find cheap pages – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice8个月前 (07-27)
  5. #46

    Thank you! Helpful information!

    can you take viagra ecstasy female viagra sildenafil
    viagra for sale uk
    buy viagra in canada – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice8个月前 (07-27)
  6. #45

    Thanks! A lot of tips!

    try viagra for free need something better than viagra
    generic viagra
    viagra without prescription india – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  7. #44

    You suggested it perfectly.

    vitreous detachment and viagra viagra macular degeneration
    viagra pills
    viagra for doggies – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  8. #43

    You said it nicely..

    viagra supplier us online pharmacy viagra brasil
    buy viagra
    viagra zeit – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  9. #42

    Many thanks, I like this.

    viagra stimulis confidential online prescription viagra
    viagra online
    what will 200mg of viagra do – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  10. #41

    Wonderful tips. Appreciate it.

    viagra free sites computer search buy legitimate viagra generic
    viagra for women
    viagra side effects prmature – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  11. #40

    Very good data. Kudos!

    treating viagra indigestion viagra alcahol
    viagra without a doctor prescription
    viagra doses compared to levitra doses – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  12. #39

    Awesome advice. Thank you!

    viagra low blood pressure flintstone’s viagra song
    viagra for women
    buy now viagra – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  13. #38

    You stated that exceptionally well!

    alternative presciption medication to viagra arlene farmer viagra
    generic viagra online
    viagra and peyronie’s – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  14. #37

    You made your position quite effectively!.

    herbal viagra alternative viagra storage
    generic viagra 100mg
    penis on viagra – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  15. #36

    You expressed that adequately.

    over-the-counter supplement that mimicks viagra buy generic viagra online
    viagra for women
    viagra vancouver – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  16. #35

    You actually suggested this fantastically.

    generic viagra vega 100mg india viagra vs generic viagra
    generic viagra
    cheap pfizer viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  17. #34

    You suggested this wonderfully.

    americans hooked on viagra cialis and levitra viagra
    buy viagra online
    viagra super active canada no prescription – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-27)
  18. #33

    Seriously a lot of superb facts.

    generic viagra without presciption legal viagra overseas
    generic viagra 100mg
    provigil viagra interaction – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  19. #32

    Regards. Lots of content.

    viagra and liver disease generic viagra canadian
    cheap viagra
    free natural viagra – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  20. #31

    Nicely put. Thanks.

    cialis viagra levitra tramadol viagra alternatives uk
    viagra for sale uk
    viagra v – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  21. #30

    Terrific posts, Thank you.

    cheapest viagra in the usa pfizer viagra trial offer
    buy viagra
    buy viagra uk online – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  22. #29

    Many thanks, Fantastic information.

    cealis vs viagra experation date viagra
    viagra for women
    buy viagra in new york – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  23. #28

    You revealed this exceptionally well!

    viagra testimony cheap viagra switch maestro
    viagra generic
    viagra really works – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  24. #27

    Wonderful data. Thanks a lot!

    online order for viagra discounted viagra phentermine weight loss
    viagra without a doctor prescription
    viagra and sports performance – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  25. #26

    You said it adequately.!

    whats next when viagra dont work what ingredient in viagra
    viagra for sale uk
    what politician did ads for viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  26. #25

    You’ve made your point.

    viagra use negative effects viagra
    viagra for sale uk
    does viagra come in a drink – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  27. #24

    Many thanks! Valuable stuff!

    chemist no risk viagra viagra rrp australia
    viagra without a doctor prescription
    order viagra online in wisconsin – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  28. #23

    You expressed that perfectly!

    viagra ad email norton edinburgh uk viagra find search pages
    buy viagra
    generic viagra rx – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  29. #22

    You actually said this adequately!

    submit a site viagra get up like viagra lyrics
    viagra pills
    viagra in your 20s – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  30. #21

    With thanks, An abundance of info.

    over the counter viagra replacment viagra gender
    generic viagra online
    lipitor and viagra – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  31. #20

    Appreciate it, Numerous facts.

    poor mans viagra information on viagra
    viagra online
    viagra micardis compatibility – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  32. #19

    Regards, I enjoy it.

    from generic india viagra organic alternatives to viagra
    buy viagra online
    viagra on an empty stomach – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  33. #18

    Thanks a lot, Loads of posts.

    viagra online pharmacy cheap viagra direct
    viagra online
    is viagra safe for women – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  34. #17

    Thanks a lot! I appreciate it!

    womens herbal viagra buy viagra s journal
    buy generic viagra
    is viagra available on the nhs – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  35. #16

    Amazing facts. Thanks a lot!

    male enhancements viagra and cialis le viagra
    viagra without a doctor prescription
    divide viagra three equal pices – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  36. #15

    Thanks a lot. Valuable stuff!

    cheap inexpensive viagra viagra picture
    generic viagra 100mg
    maximize effect of viagra – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  37. #14

    Truly all kinds of fantastic info!

    who invented viagra viagra free sample
    buy generic viagra
    buy low price viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  38. #13

    Tips very well applied.!

    when will viagra be generic soft viagra quick delivery
    buy generic viagra
    viagra in desert – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  39. #12

    This is nicely put! .

    generic viagra capsules viagra wife
    viagra for sale uk
    when and how to use viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  40. #11

    Regards! A lot of advice.

    viagra womans spanish viagra
    viagra for sale uk
    why do you take viagra – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  41. #10

    Whoa plenty of fantastic advice!

    viagra fraudsters opposite viagra
    generic viagra 100mg
    show how viagra works – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  42. #9

    Great knowledge. Thank you.

    viagra female testimonials free viagra samples from pfizer
    buy generic viagra
    generic brand for viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  43. #8

    Nicely put. Regards.

    viagra high school college males virus that sends emails for viagra
    viagra generic
    take extenze and viagra – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  44. #7

    Thanks a lot! Awesome stuff!

    viagra ischemia how to stop viagra spam
    viagra without a doctor prescription
    viagra on internet – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-26)
  45. #6

    You made your point.

    prescription viagra cost nu virgos viagra
    generic viagra 100mg
    pros and cons viagra – https://genericviagrarcp.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)
  46. #5

    Cheers. Plenty of knowledge!

    viagra online online a href iframe definition viagra
    viagra generic
    viagra edinburgh search site find – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)
  47. #4

    Many thanks, I value it.

    eli lily viagra patent genetic viagra europe
    viagra generic
    can viagra be cut in half – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)
  48. #3

    Info nicely utilized.!

    people who bought viagra online viagra free consultation
    viagra without a doctor prescription
    viagra and emphsema – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)
  49. #2

    You definitely made your point.

    viagra generique viagra clones
    buy viagra
    find viagra free online search – https://genericviagramsl.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)
  50. #1

    With thanks! Awesome information!

    viagra up all night viagra hemmeroids
    viagra generic
    name buy viagra text buy viagra – https://genericviagrantx.com

    Davidneent
    TerenceBrili
    VictorNeils

    待审核
    Andrewunice9个月前 (07-25)