Ticket #5741 (new feature request)
openFile should fail if null bytes are in the argument
| Reported by: | Veinor | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 7.6.1 |
| Component: | libraries/base | Version: | 7.2.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Runtime performance bug | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
If the argument to openFile contains a null byte, right now it silently truncates everything after the null byte. This could lead to a vulnerability if the programmer relies on the presence of an extension such as ".cfg" to prevent people from reading in, say, /etc/passwd.
Change History
Note: See
TracTickets for help on using
tickets.
