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

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

    You actually reported this adequately!

    sub lingual viagra response safe maximum viagra dosage
    viagra for women
    viagra add men singing – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

    待审核
    Larryrar11个月前 (07-27)
  2. #49

    With thanks! Terrific information!

    viagra non drug replacement viagra demo video
    buy viagra
    viagra vs levetra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Amazing tons of helpful tips.

    viagra w overnight shipping cialis levitra sale viagra
    buy generic viagra
    c-pill order viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Nicely put, Cheers!

    q viagra search viagra over night
    buy viagra online
    witch tessco store sells viagra – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Many thanks! Quite a lot of information.

    viagra use for enlarged heart viagra on sle
    viagra pills
    schematic viagra talking photo cube – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Really many of very good advice!

    buying viagra buying viagra uk suppliers of viagra
    generic viagra 100mg
    viagra lawsuit pfizer – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Thank you! Excellent stuff.

    viagra rock risk of cialis and viagra together
    viagra 100mg
    attack on contact list viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You suggested this fantastically.

    buy diet online phentermine pill viagra invention of viagra
    generic viagra
    sites computer viagra pages edinburgh search – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Very good tips. Many thanks!

    cialis levitra viagra vs vs cars in viagra commercial chevy nova
    viagra online
    speed of viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You mentioned that effectively!

    viagra viagra edinburgh search cialis charles viagra race car screen saver
    viagra for women
    women using viagra – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    This is nicely said! .

    weight control and viagra can you take viagra and adderall
    viagra 100mg
    viagra 250mg – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Terrific material. Many thanks!

    100mg viagra professional generic purchase viagra
    viagra for women
    side effects viagra tadalafil – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Fine tips. Thanks!

    viagra sale free generic pharmacy viagra fuerteventura
    viagra without a doctor prescription
    viagra target market men age – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Regards! Excellent stuff!

    mens viagra viagra for woen
    viagra generic
    viagra and 2 girls – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Nicely put, Cheers!

    watch viagra in action moon flowers viagra
    cheap viagra
    buy viagra in toronto – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Terrific knowledge. Cheers.

    india generic viagra legal allentown viagra
    buy viagra online
    viagra effects on men – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You mentioned it superbly!

    buy viagra in ny viagra riddim mix
    viagra 100mg
    viagra and hypertension – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Thanks a lot! I like this.

    antidepressant female viagra viagra generic europe
    viagra pills
    mastrubation using viagra – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You said it terrifically.

    fre viagra generic viagra 20mg pills erections
    viagra 100mg
    viagra 24 hour delivery – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Thanks a lot! Helpful information!

    viagra invented by mistake whats the active ingrediant for viagra
    generic viagra
    is viagra a narcotic – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You actually explained this superbly.

    1 generic viagra viagra drug profile
    generic viagra
    viagra compare – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Cheers. A lot of content.

    viagra recommended dosage buy viagra online 3$ per pill
    viagra without a doctors prescription
    buy sublingual viagra online – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You have made your stand very clearly..

    free trial viagra cialis levitra hunks on viagra gallery
    buy generic viagra
    how do i purchase viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You actually expressed that exceptionally well!

    viagra duration free online sample viagra
    viagra 100mg
    generic viagra canada – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Fantastic forum posts, Many thanks.

    viagra gay men is he taking viagra
    generic viagra
    caterpillar fungus indias viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Truly a lot of very good information.

    viagra doctor bite hard viagra pc100
    buy viagra
    bulldog viagra illegal – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Thanks. Wonderful stuff!

    generic name viagra psa and viagra
    cheap viagra
    viagra dosage for women – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You actually suggested that effectively!

    canadian pharamacy viagra buying viagra overseas
    viagra 100mg
    online viagra overnight – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Incredible a good deal of helpful knowledge.

    quick forum readtopic viagra signature search don’t eat with viagra
    generic viagra 100mg
    viagra 100mg sildenafil citrate pfizer labs – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Regards, Quite a lot of info!

    viagra balls good screw with viagra href cialis
    cheap viagra
    buy viagra cialis – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Really many of awesome data.

    best buy viagra does viagra make penis bigger
    viagra online
    buy cheap deal online viagra viagra – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Fantastic write ups, Many thanks.

    100mg viagra cost canadian generic viagra
    viagra for sale uk
    viagra work for venous leak – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Nicely expressed of course. !

    reduce side effects of viagra white rabbit and viagra
    viagra pills
    search viagra viagra find 76k buy – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Awesome data. Many thanks!

    cialis super viagra viagra philadelphia
    buy viagra online
    effects of 150 mg of viagra – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    This is nicely put! .

    buy uk viagra coleman 2000 viagra elite
    buy viagra
    new computer virus viagra – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Whoa a good deal of amazing information!

    watermelon viagra connection veeline viagra
    cheap viagra
    funny viagra names – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Nicely put, Thank you.

    viagra on line buy cheap viagra online u
    buy generic viagra
    viva viagra pfizer – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You reported this superbly!

    viagra in australia where can i get viagra pills
    generic viagra 100mg
    arguments for coverage of viagra – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Useful write ups. Thanks.

    how does diazapam interact with viagra average cost of viagra in stores
    viagra 100mg
    can viagra aggravate hemroids – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    You have made your point.

    viagra and sports performance viagra dirty
    generic viagra 100mg
    viagra watermellon – https://genericviagramsl.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Many thanks! Loads of posts.

    best life viagra blocking viagra email spam
    generic viagra online
    viagra and ejaculation – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Incredible quite a lot of superb tips.

    viagra cialis levitra in lima peru viagra paypall
    viagra without a doctors prescription
    viagra demonstration – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

    待审核
    Larryrar11个月前 (07-25)
  43. #8

    Fantastic knowledge. With thanks!

    walgreens viagra cost viagra update on its lawsuit 2008
    viagra online
    viagra home office photo – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

    待审核
    Larryrar11个月前 (07-25)
  44. #7

    Fine facts. Thanks.

    more than one viagra day usa online pharmacies that sell viagra
    generic viagra 100mg
    viagra how long – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

    待审核
    Larryrar11个月前 (07-25)
  45. #6

    Cheers! Lots of content.

    viagra without prescription cialis viagra 63114
    generic viagra
    cheap viagra a – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Kudos, Loads of data.

    viagra lloyds pharmacy viagra br
    viagra online
    price of viagra in mexico – https://genericviagrantx.com

    Geraldwix
    Dwaynegax
    KevinTed

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

    Amazing stuff. Cheers!

    hebal viagra do viagra and cialis retard orgasm
    generic viagra online
    viagra and plavix – https://genericviagrarcp.com

    Geraldwix
    Dwaynegax
    KevinTed

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