bugfastcgi++ - Bugs: bug #36450, IPv6 address parser acepts non hex...

 
 
Show feedback again

bug #36450: IPv6 address parser acepts non hex characters

Submitted by:  David Schneider <davidschneider>
Submitted on:  Fri 11 May 2012 09:13:13 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Eddie Carle <eddic>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 May 2012 04:14:30 AM UTC, comment #1:

A change has now been committed, thanks.

Eddie Carle <eddic>
Project AdministratorIn charge of this item.
Fri 11 May 2012 09:13:13 AM UTC, original submission:

Only valid hexadecimal characters 0-9a-fA-F should be accepted by the IPv6 address parser (Fastcgipp::Http::Address::assign). At the moment all alpha numeric characters are accepted.

scr/http.cpp
}
else if('0' <= read && read <= '9')
offset = '0';
- else if('A' <= read && read <= 'Z')
+ else if('A' <= read && read <= 'F')
offset = 'A'-10;
- else if('a' <= read && read <= 'z')
+ else if('a' <= read && read <= 'f')
offset = 'a'-10;
else if(*read == '.')
{

David Schneider <davidschneider>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by eddic (Posted a comment)
  • -unavailable- added by davidschneider (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 May 2012 04:14:30 AM UTCeddicStatusNone=>Fixed
      Assigned toNone=>eddic
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup