[wp-trac] [WordPress Trac] #45046: IP validation improper loophole repair

WordPress Trac noreply at wordpress.org
Wed Oct 10 15:41:19 UTC 2018


#45046: IP validation improper loophole repair
--------------------------+----------------------
 Reporter:  wooir         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  HTTP API      |     Version:  4.9.8
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):

 * keywords:  reporter-feedback =>
 * component:  General => HTTP API


Old description:

> wp-includes/http.php
> 563 lines:
> if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
>
> It should be modified to:
> if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0] || 0 ===
> $parts[0]

New description:

 wp-includes/http.php
 563 lines:
 {{{
 if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0]
 }}}
 It should be modified to:
 {{{
 if ( 127 === $parts[0] || 10 === $parts[0] || 0 === $parts[0] || 0 ===
 $parts[0]
 }}}

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45046#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list