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

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’ve made your position very nicely.!

    levitra vardenafil hci viagra sildenafil citrate viagra other uses
    viagra online
    shopping online for viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Valuable postings. With thanks!

    who manufactures generic viagra x cite herbal viagra for woman
    generic viagra online
    female viagra ingredients – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Regards, Awesome stuff.

    viagra in cction interazione tra viagra e eutirox
    generic viagra online
    edinburgh viagra search linskaill charles – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Incredible a lot of awesome tips.

    viagra and deafness viagra professional
    viagra generic
    math and viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Truly quite a lot of helpful info!

    cut 50mg viagra in half viagra cheap price
    viagra for women
    is levitra cheaper than viagra – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You’ve made your position quite nicely!.

    buy viagra in cagayan de oro natural viagra for men
    buy viagra online
    drug interaction glucophage viagra drug interaction – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    With thanks, Plenty of postings.

    most reliable generic viagra viagra and grapefruit juice
    cheap viagra
    viagra ship to canada paypal – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Kudos! I appreciate this!

    viagra graphic viagra photos
    viagra for sale uk
    jamaica blog negril sex viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Amazing loads of amazing facts!

    inter action between viagra and cialis viagra without a prescription ontario canada
    generic viagra
    viagra blood low pressure – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    With thanks. Plenty of information.

    generic viagra online uk enzyte vs viagra
    buy viagra online
    natual alternative to viagra – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You said it very well.!

    ginko viagra best price on viagra
    cheap viagra
    viagra commercial canyon lodge – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Cheers, I value this.

    good side effects of viagra alternative buy viagra
    viagra generic
    viagra sale buy – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You actually explained this perfectly.

    viagra’s corporate office photos lawsuit viagra
    viagra 100mg
    alchohol and viagra – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You reported it fantastically!

    bodybuilding viagra herbal form of viagra
    viagra for women
    mix epinephrine and viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Wonderful facts, Thanks a lot.

    pfizer viagra approval 2009 find viagra free sites edinburgh
    viagra for sale uk
    herbs viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Thanks a lot. A lot of write ups.

    pharmaceutical side effects viagra q a viagra
    generic viagra
    viagra sildenafil citrate information – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Cheers, Great information.

    does womens viagra work cheap generic viagra
    generic viagra 100mg
    amazon monavie viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Many thanks. Excellent information.

    lastest viagra message boards where to purchase viagra cialis levitra
    generic viagra 100mg
    bonifacio comandante viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You’ve made your point quite clearly!!

    football player busted with viagra viagra drug classification mayo
    buy viagra online
    viagra hotline – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Helpful write ups. Thank you!

    drug stores in usa selling viagra cock on viagra
    buy viagra online
    viagra confidential fast prescriptions online – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Perfectly spoken of course. !

    mdma viagra combo on the street picture of viagras home office
    generic viagra online
    user reports on professional viagra – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Thanks! Numerous content!

    nhs viagra free extended use viagra
    viagra without a doctors prescription
    equivalents to viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You suggested that wonderfully!

    four hour hard on viagra viagra paypal
    viagra online
    viagra fedex – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You revealed that effectively.

    professional viagra female ingestion of viagra
    buy viagra online
    what to do when using viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Nicely put, Many thanks!

    chinese viagra phentermine tramadol viagra
    viagra generic
    2cialis comparison levitra viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Regards, Numerous advice!

    camille west viagra in the water non generic viagra
    generic viagra
    viagra addiction – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Seriously all kinds of useful advice!

    can viagra be broken in half free herbal viagra samples
    viagra generic
    best price viagra name brand – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Many thanks, Numerous data.

    viagra half dose cat ate viagra
    viagra 100mg
    cialis levitra viagra cost comparisons – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You actually expressed it very well.

    generic viagra bbb mark martin viagra car
    buy viagra
    es testosterone viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    This is nicely said. .

    viagra afghanies continuing medil edution lifornia viagra
    generic viagra 100mg
    dangers of using expired viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Seriously many of terrific tips.

    viagra oral viagra name canadian pharmacy
    buy generic viagra
    rush arrested with viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Terrific facts. Appreciate it.

    url links viagra blood-pressure een van viagra message boards
    viagra for women
    is viagra generic – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You explained that adequately.

    giant viagra pill viagra dealers
    buy viagra
    cheap viagra pills – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Thanks a lot! Plenty of knowledge.

    how dose viagra work viagra viagra pages edinburgh find generic
    viagra without a doctor prescription
    viagra when does it go generic – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Seriously lots of valuable advice!

    viagra best price generic buy viagra online for less money
    generic viagra 100mg
    what are the benifets of viagra – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Very well expressed of course. !

    viagra pills beijing drink female viagra
    viagra pills
    information on levitra or viagra purchase – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You actually explained that superbly!

    viagra sale free generic order viagra online
    viagra for women
    take cialis soft and viagra together – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Fine facts. Thank you.

    viagra precription free viagra 2010 jelsoft enterprises ltd
    viagra without a doctor prescription
    herbal viagra largo fl – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Awesome facts. Thank you!

    easybuy viagra ginko viagra
    viagra online
    viagra discount card – https://genericviagramsl.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Really tons of great advice!

    cheap viagra online without prescription viagra ad email norton
    viagra 100mg
    100mg viagra from canadian pharmacy – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Good data. Kudos!

    viagra latvia crush viagra tablets
    viagra 100mg
    viagra 100 – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    With thanks! Excellent information!

    viagra nitrates how long does viagra keep
    viagra online
    viagra on penis – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    You said this terrifically.

    how does dilitiazem interact with viagra modo de empleo viagra
    viagra pills
    does viagra help keep it up – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Regards! Useful information!

    replace viagra robin williams viagra
    viagra for sale uk
    video of viagra sex – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Wonderful information. With thanks!

    viagra online drugstore usa pharmacy cheapest viagra
    buy viagra online
    viagra works with alcohol – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Regards. Plenty of posts!

    cheapest 100 viagra uk hotmail viagra adware virus
    viagra generic
    which company manufactures viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    This is nicely expressed. !

    stop viagra spam gout and viagra
    generic viagra online
    900 milligrams of viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Thank you. Lots of material!

    for viagra herbal alternative viagra levitra herb
    viagra online
    which is best viagra livetra cialis – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Well voiced really. .

    viagra real mail viagra alternative uk
    generic viagra 100mg
    case law regarding viagra – https://genericviagrantx.com

    KeithFrews
    RichardJek
    Ernestolet

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

    Regards! Terrific stuff!

    what viagra dosage should i take male quadriplegic using viagra
    buy viagra online
    free samples viagra – https://genericviagrarcp.com

    KeithFrews
    RichardJek
    Ernestolet

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