bugGNU Wget - Bugs: bug #66004, recursive download crashes on html...

 
 

bug #66004: recursive download crashes on html files bigger than INT_MAX

Submitter:  None
Submitted:  Fri 19 Jul 2024 06:57:40 PM UTC
   
 
Category:  Crash/Freeze/Infloop Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Amy Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  1.20
Operating System:  Mac OS Reproducibility:  Every Time
Fixed Release:  None Planned Release:  None
Regression:  None Work Required:  None
Patch Included:  No
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Jul 2024 06:57:40 PM UTC, original submission:  

this affects 1.24.5, but versions newer than 1.20 don't seem to be in the dropdown?

reproducible by using -r on a url that wget treats as html and has a size which will become negative when casted from long to int (e.g. will crash with a 3gb file, but not a 5gb one). it will segfault reading out of bounds on the mapped file. seems this is because of map_html_tags size argument.

(while of course a 2+ gb html file is rare and i don't see how this would be exploitable, a misconfigured server can result in binary files being parsed as html, which is how i originally ran into this bug)

hope that helps!

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56291:  macos@crash@report.txt added by None (7KiB - text/plain - providing the macos crash report, though i doubt it will be needed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-07-19 None Attached File- Added macos@crash@report.txt, #56291

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code