Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow
An integer overflow in PHP's iconv MIME header decoding function causes an out-of-bounds read when parsing a crafted MIME message with an unrecognised character set and the continue-on-error flag. An attacker could crash the application or potentially leak memory contents.
- Disclosed after 16 months
PHP upstream bug report: https://bugs.php.net/bug.php?id=78069
Description: In _php_iconv_mime_decode() function in iconv.c, there's an out-of-bounds read due to an integer overflow vulnerability. MIME encoded string is being parsed and decoded in for loop with following condition:
for (str_left = str_nbytes; str_left > 0; str_left--, p1++) {
Inside this for loop, it's possible for str_left to be decreased and p1 to be increased at the same time when scan_stat is equal to 2 (i.e. case 2 branch of the switch) and the given character set is unrecognized and ICONV_MIME_DECODE_CONTINUE_ON_ERROR is specified, so it continues to parse the message. It will then try to skip the encoded word by searching for the other two '?' characters while increasing p1 and decreasing str_left:
int qmarks = 2;
while (qmarks > 0 && str_left > 1) {
if (*(++p1) == '?') {
--qmarks;
}
--str_left;
}
If the while condition is stopped, it will proceed to the next condition that checks if the next character is '=' and if it is, p1 is increased again and str_left is decreased:
if (*(p1 + 1) == '=') {
++p1;
--str_left;
}
However, if the previous while loop was stopped due to str_left being equal to 1, it is now decreased to 0. The encoded string is copied to 'pretval' variable and if it doesn't error out, it will properly set scan_stat and break:
scan_stat = 12;
break;
The for loop is being run from start again, but before checking the condition 'str_left > 0', it is first decreased. Since it was already equal to 0 and it is defined as size_t (i.e. unsigned integer), it will overflow to very huge positive number. At this point, the code will continue to read from p1 out of bounds and copy it to 'pretval'.
PoC:
$ echo "53754c743b2020304a70616100000d0d0d0d0d0d0d0d0d6563743a203d3f69730d0d0d0d0d0d0d0d0d0d0d0d0d0d0d6563743a203d3f6973754c743b2020304a70616100000d0d0d0d0d0d0d0d0d6563743a203d3f6f2d383835392d313f713f3c334633463d33463f3da2" | xxd -r -p - > poc
$ sha256sum poc
c471fb3e1511897d3fda9095e0eb85c934532a207f30ac99f0e7d58c42916e4b poc
$ USE_ZEND_ALLOC=0 sapi/cli/php -r '$hdr = iconv_mime_decode_headers(file_get_contents("poc"),2);'
=================================================================
==26444==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60d0000005a8 at pc 0x000000a2ee39 bp 0x7ffcc313a470 sp 0x7ffcc313a460
READ of size 1 at 0x60d0000005a8 thread T0
#0 0xa2ee38 in _php_iconv_mime_decode /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:1965
#1 0xa332c6 in zif_iconv_mime_decode_headers /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:2409
#2 0x159adb7 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /home/neural.x/Projects/php-7.3.5/Zend/zend_vm_execute.h:690
...
This issue affects all current stable releases, namely PHP-7.1.29, PHP-7.2.18, and PHP-7.3.5. Tested on Fedora 28, PHP code was compiled with ASAN. It is possible to observe the bug also with valgrind without the necessity of compilig php with ASAN.
Impact
Remote attacker can submit specially crafted MIME format message (email) which triggers the vulnerability in the parsing code when decoding MIME headers. Possible impact is crash of the application or even information leak, depending on the further usage of the decoded header since it contains the data from memory outside of allocated string. The exact behaviour depends on the content of the memory after 'str' buffer.
Context
PHP's iconv extension provides functions for converting between character sets, and among them iconv_mime_decode() and iconv_mime_decode_headers() parse MIME encoded headers such as those found in email messages. A MIME encoded word has the general shape =?charset?encoding?text?=, and the decoder walks through the header string looking for these markers, decoding each encoded word it finds.
The bug described here lives in _php_iconv_mime_decode() in iconv.c, the internal routine that both public functions rely on. The researcher filed it upstream as PHP bug 78069 and reported it through the Internet Bug Bounty programme on HackerOne, where it was rated high severity (CVSS 8.2) under the Buffer Over-read weakness and paid a bounty of 1,500 USD. It was disclosed on 12 October 2020.
Setup
The issue was reproduced against PHP 7.3.5, and the researcher states it affects all current stable releases at the time: PHP 7.1.29, PHP 7.2.18 and PHP 7.3.5. Testing was done on Fedora 28 with PHP compiled with AddressSanitizer (ASAN). The researcher notes that the bug can also be observed with valgrind, without the need to compile PHP with ASAN.
The proof of concept uses the command line PHP binary (sapi/cli/php) and the environment variable USE_ZEND_ALLOC=0, which disables the Zend memory manager so that ASAN sees the raw allocations. No account, role or remote service is needed: the vulnerable code is reached by passing a crafted string to iconv_mime_decode_headers().
Finding it
The researcher focused on the main parsing loop of _php_iconv_mime_decode(), which iterates over the input with a counter and a pointer:
for (str_left = str_nbytes; str_left > 0; str_left--, p1++) {
str_left is declared as size_t, an unsigned integer type, and tracks how many bytes remain to be examined. Inside the loop a switch on scan_stat handles the different parsing states. The researcher noticed that in the case where scan_stat equals 2, the code can decrease str_left and increase p1 more than once in a single iteration, and that the arithmetic around the end of an encoded word can drive str_left to zero before the loop condition is evaluated again.
Because str_left is unsigned, decrementing it from zero in the for loop's update expression wraps it to a very large positive number. The loop then keeps running, reading from p1 past the end of the buffer and copying those bytes into the output variable pretval.
Exploitation
Step 1: build the input file
The researcher supplies a hex string and converts it to a binary file with xxd:
$ echo "[redacted]" | xxd -r -p - > poc
This writes the decoded bytes to a file named poc. The content is a MIME header fragment containing =? sequences, ? separators and ?= terminators, mixed with 0d (carriage return) bytes and a 00 byte, ending in a2.
Step 2: record the file hash
$ sha256sum poc
[redacted] poc
This gives a stable reference for the exact input used in the reproduction.
Step 3: run the decoder under ASAN
$ USE_ZEND_ALLOC=0 sapi/cli/php -r '$hdr = iconv_mime_decode_headers(file_get_contents("poc"),2);'
The second argument, 2, is ICONV_MIME_DECODE_CONTINUE_ON_ERROR. That flag is essential: it tells the decoder to keep parsing after an error instead of bailing out. The file contents are read and passed as the header string.
ASAN reports a heap buffer overflow:
=================================================================
==26444==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60d0000005a8 at pc 0x000000a2ee39 bp 0x7ffcc313a470 sp 0x7ffcc313a460
READ of size 1 at 0x60d0000005a8 thread T0
#0 0xa2ee38 in _php_iconv_mime_decode /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:1965
#1 0xa332c6 in zif_iconv_mime_decode_headers /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:2409
#2 0x159adb7 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /home/neural.x/Projects/php-7.3.5/Zend/zend_vm_execute.h:690
...
The stack shows the read happening inside _php_iconv_mime_decode() at iconv.c:1965, called from zif_iconv_mime_decode_headers() at iconv.c:2409. The stack shows the read happening inside _php_iconv_mime_decode() at iconv.c:1965, called from zif_iconv_mime_decode_headers() at iconv.c:2409, which is the out-of-bounds access the researcher predicted from reading the loop.
Root cause
The parsing loop relies on str_left reaching zero to terminate, and on p1 staying within the buffer. In the scan_stat == 2 branch, when the character set of an encoded word is unrecognised and ICONV_MIME_DECODE_CONTINUE_ON_ERROR is set, the decoder tries to skip over the rest of the encoded word by searching for the two remaining ? characters:
int qmarks = 2;
while (qmarks > 0 && str_left > 1) {
if (*(++p1) == '?') {
--qmarks;
}
--str_left;
}
If that loop stops because str_left has fallen to 1, the code then checks whether the next character is = and, if so, advances p1 and decrements str_left once more:
if (*(p1 + 1) == '=') {
++p1;
--str_left;
}
At this point str_left is 0. The code copies the encoded string into pretval, and if that does not error out it sets the state and breaks out of the switch:
scan_stat = 12;
break;
The for loop then runs its update expression, which decrements str_left again before the str_left > 0 condition is checked. Since str_left is a size_t and was already 0, it wraps to a very large positive value. The condition is therefore true, and the loop continues reading from p1, now past the end of the buffer, copying the out-of-bounds bytes into pretval.
The loop's own bounds check is defeated by the unsigned wrap. The ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag is what allows execution to reach the state where the skip logic runs on an unrecognised charset rather than aborting.
Impact
A remote attacker can submit a specially crafted MIME format message, such as an email, which triggers the vulnerability when the application decodes MIME headers. The possible impact is a crash of the application or even an information leak, depending on how the decoded header is used afterwards, since it contains data from memory outside the allocated string. The exact behaviour depends on the content of the memory after the str buffer.
Fix
The report does not describe a patch or the change that was made. The upstream PHP bug entry (bug 78069) is the reference for the resolution.
Variants to test
- Other callers of the same decoder: any code path that reaches
_php_iconv_mime_decode()withICONV_MIME_DECODE_CONTINUE_ON_ERRORset is worth exercising with malformed encoded words, since the flag is a precondition here. - Encoded words with unrecognised charsets: the skip logic that searches for the remaining
?characters only runs when the charset is not recognised, so vary the charset token and the number of?separators. - Truncated terminators: inputs where the closing
?=falls at the very end of the buffer, so that the*(p1 + 1) == '='check and the following decrement land exactly on the boundary. A positive result is an ASAN or valgrind report of a read past the allocation. - Other unsigned length counters in parsers: look for
size_tloop counters that are decremented in more than one place per iteration, especially where abreakleaves the counter at zero before the loop update runs.
Hunting notes
This kind of bug hides in hand written parsers that walk a buffer with a pointer and an unsigned remaining-length counter, particularly where a switch state machine can advance both in the same iteration. The signals during review are loops of the form for (len = n; len > 0; len--, p++) combined with inner while loops that also decrement len, and any break that exits a state without re-checking the counter.
On the impact side, the researcher showed a concrete ASAN heap-buffer-overflow with a stack trace pointing at the exact source lines, a reproducible input file with its SHA-256 hash, and a clear explanation of how the decoded out-of-bounds bytes end up in the returned header value.
What happened, in plain words
PHP is a programming language used to build websites and web applications. It comes with a large collection of built-in toolkits called extensions. One of them, iconv, is about converting text between different character sets: the different ways computers agree to represent letters, accents and symbols as numbers. Two functions in that extension, iconv_mime_decode() and iconv_mime_decode_headers(), are used to read MIME encoded headers, which is the format email uses to put non-plain-text information (like a sender name with accents) into a header line.
A MIME encoded word looks roughly like =?charset?encoding?text?=. Think of it as a parcel with three labels stuck on it: which alphabet the contents use, how the contents were packed, and the contents themselves. The decoder walks along the header string looking for these markers and unpacks each one it finds.
The bug lives in _php_iconv_mime_decode() in a file called iconv.c. That is the internal routine that both public functions rely on. The researcher filed it upstream as PHP bug 78069 and reported it through the Internet Bug Bounty programme on HackerOne, where it was rated high severity (CVSS 8.2) under the Buffer Over-read weakness and paid a bounty of 1,500 USD. It was disclosed on 12 October 2020.
In plain terms: the decoder keeps a count of how many bytes are left to read. Under one specific combination of circumstances that count can be pushed to zero and then reduced once more. Because of the way the number is stored, it does not become negative; it wraps around to an enormous positive number. The decoder then believes there is a huge amount of text left and keeps reading past the end of the actual data, copying whatever happens to sit in memory next into the result it returns.
Setup
The issue was reproduced against PHP 7.3.5, and the researcher states it affects all current stable releases at the time: PHP 7.1.29, PHP 7.2.18 and 7.3.5. Testing was done on Fedora 28 (a Linux distribution) with PHP compiled with AddressSanitizer (ASAN). ASAN is a debugging tool built into a program at compile time; it watches memory accesses and shouts loudly when the program reads or writes outside the area it was given. The researcher notes that the bug can also be observed with valgrind, another memory-checking tool, without the need to compile PHP with ASAN.
The proof of concept uses the command line PHP binary (sapi/cli/php), which is PHP run from a terminal instead of through a web server, and the environment variable USE_ZEND_ALLOC=0. An environment variable is a named setting passed to a program when it starts. USE_ZEND_ALLOC=0 disables the Zend memory manager, PHP's own layer that hands out and recycles memory; with it off, ASAN sees the raw allocations and can judge them accurately. No account, role or remote service is needed: the vulnerable code is reached simply by passing a crafted string to iconv_mime_decode_headers().
Finding it
The researcher focused on the main parsing loop of _php_iconv_mime_decode(), which iterates over the input with a counter and a pointer:
for (str_left = str_nbytes; str_left > 0; str_left--, p1++) {
Line by line:
for (...)starts a loop that repeats until a condition stops being true.str_left = str_nbytessets up the counter.str_nbytesis the total length of the input in bytes, andstr_leftwill track how many bytes remain to be examined.str_left > 0is the condition checked before every pass: keep going while there is at least one byte left.str_left--, p1++is the update that runs after every pass: reduce the remaining count by one and move the pointerp1forward by one byte.
A pointer is simply a marker that says "the current position in this block of memory". str_left is declared as size_t, an unsigned integer type, meaning it can only hold zero and positive values, never negatives.
Inside the loop a switch on scan_stat handles the different parsing states. A switch is a way of choosing between several branches depending on the value of a variable, like a railway junction. scan_stat records where the decoder currently is in its walk through the header.
The researcher noticed that in the case where scan_stat equals 2, the code can decrease str_left and increase p1 more than once in a single iteration, and that the arithmetic around the end of an encoded word can drive str_left to zero before the loop condition is evaluated again.
Because str_left is unsigned, decrementing it from zero in the for loop's update expression wraps it to a very large positive number. Picture a car odometer that only counts upwards: wind it back one notch from zero and it shows the highest number it can display. The loop then keeps running, reading from p1 past the end of the buffer and copying those bytes into the output variable pretval.
Exploitation
Step 1: build the input file
The researcher supplies a hex string and converts it to a binary file with xxd:
$ echo "[redacted]" | xxd -r -p - > poc
Line by line:
echo "..."prints the long string of hexadecimal digits. Hexadecimal is a way of writing bytes as pairs of characters from 0 to 9 and a to f; each pair stands for one byte.|is a pipe: it takes the output of the command on its left and feeds it as input to the command on its right.xxd -r -p -runsxxdin reverse mode (-r), reading plain hex digits (-p) from standard input (-), and turns them back into raw bytes.> pocredirects the result into a file namedpoc.
This writes the decoded bytes to a file named poc. The content is a MIME header fragment containing =? sequences, ? separators and ?= terminators, mixed with 0d (carriage return) bytes and a 00 byte, ending in a2. The point of building the file this way is to have an exact, byte-for-byte input that can be recreated by anyone.
Step 2: record the file hash
$ sha256sum poc
[redacted] poc
Line by line:
sha256sum pocasks the system to compute a SHA-256 hash of the filepoc. A hash is a short fingerprint derived from the file's contents: change one byte and the fingerprint changes completely.- The long string printed is that fingerprint, and
pocis the file it belongs to.
This gives a stable reference for the exact input used in the reproduction, so anyone can confirm they are testing the same bytes.
Step 3: run the decoder under ASAN
$ USE_ZEND_ALLOC=0 sapi/cli/php -r '$hdr = iconv_mime_decode_headers(file_get_contents("poc"),2);'
Line by line:
USE_ZEND_ALLOC=0sets the environment variable for this one command only, turning off PHP's own memory manager so ASAN can see the real allocations.sapi/cli/phpis the command line PHP program.-r '...'tells PHP to run the code given directly on the command line instead of reading it from a file.file_get_contents("poc")reads the whole contents of the filepocinto memory as a string.iconv_mime_decode_headers(..., 2)passes that string to the vulnerable decoder. The second argument,2, isICONV_MIME_DECODE_CONTINUE_ON_ERROR. That flag is essential: it tells the decoder to keep parsing after an error instead of bailing out.$hdr = ...stores the returned headers in a variable called$hdr.
ASAN reports a heap buffer overflow:
=================================================================
==26444==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60d0000005a8 at pc 0x000000a2ee39 bp 0x7ffcc313a470 sp 0x7ffcc313a460
READ of size 1 at 0x60d0000005a8 thread T0
#0 0xa2ee38 in _php_iconv_mime_decode /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:1965
#1 0xa332c6 in zif_iconv_mime_decode_headers /home/neural.x/Projects/php-7.3.5/ext/iconv/iconv.c:2409
#2 0x159adb7 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /home/neural.x/Projects/php-7.3.5/Zend/zend_vm_execute.h:690
...
Line by line:
ERROR: AddressSanitizer: heap-buffer-overflowis ASAN saying the program touched memory outside the block it was given. The heap is the general-purpose pool of memory a program uses for data created while it runs.READ of size 1says the program tried to read a single byte at that out-of-range address.- The numbered lines starting with
#0,#1,#2are the stack trace: the chain of function calls that led to the problem, most recent first. #0 ... in _php_iconv_mime_decode ... iconv.c:1965is the exact function and source line where the bad read happened.#1 ... in zif_iconv_mime_decode_headers ... iconv.c:2409is the function that called it, which is the internal entry point for the publiciconv_mime_decode_headers()function.#2 ...is the next caller up the chain, inside PHP's engine.
The stack shows the read happening inside _php_iconv_mime_decode() at iconv.c:1965, called from zif_iconv_mime_decode_headers() at iconv.c:2409. The stack shows the read happening inside _php_iconv_mime_decode() at iconv.c:1965, called from zif_iconv_mime_decode_headers() at iconv.c:2409, which is the out-of-bounds access the researcher predicted from reading the loop.
Root cause
The parsing loop relies on str_left reaching zero to terminate, and on p1 staying within the buffer. In the scan_stat == 2 branch, when the character set of an encoded word is unrecognised and ICONV_MIME_DECODE_CONTINUE_ON_ERROR is set, the decoder tries to skip over the rest of the encoded word by searching for the two remaining ? characters:
int qmarks = 2;
while (qmarks > 0 && str_left > 1) {
if (*(++p1) == '?') {
--qmarks;
}
--str_left;
}
Line by line:
int qmarks = 2;sets up a small counter for how many?characters are still to be found. Two are expected.while (qmarks > 0 && str_left > 1)keeps looping while both there are question marks left to find and more than one byte remains.if (*(++p1) == '?')moves the pointer one byte forward and checks whether the byte it now points at is a question mark.--qmarks;if it was, reduce the number of question marks still needed by one.--str_left;in every pass, reduce the count of remaining bytes by one.
If that loop stops because str_left has fallen to 1, the code then checks whether the next character is = and, if so, advances p1 and decrements str_left once more:
if (*(p1 + 1) == '=') {
++p1;
--str_left;
}
Line by line:
if (*(p1 + 1) == '=')looks one byte ahead of the current position and asks whether it is an equals sign, the character that closes an encoded word.++p1;if it is, move the pointer onto that equals sign.--str_left;and reduce the remaining-byte count by one to match.
At this point str_left is 0. The code copies the encoded string into pretval, and if that does not error out it sets the state and breaks out of the switch:
scan_stat = 12;
break;
Line by line:
scan_stat = 12;records that the decoder has moved on to a new state.break;leaves theswitchand returns to the surrounding for loop.
The for loop then runs its update expression, which decrements str_left again before the str_left > 0 condition is checked. Since str_left is a size_t and was already 0, it wraps to a very large positive value. The condition is therefore true, and the loop continues reading from p1, now past the end of the buffer, copying the out-of-bounds bytes into pretval.
The loop's own bounds check is defeated by the unsigned wrap. The ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag is what allows execution to reach the state where the skip logic runs on an unrecognised charset rather than aborting.
Impact
A remote attacker can submit a specially crafted MIME format message, such as an email, which triggers the vulnerability when the application decodes MIME headers. The possible impact is a crash of the application or even an information leak, depending on how the decoded header is used afterwards, since it contains data from memory outside the allocated string. The exact behaviour depends on the content of the memory after the str buffer.
An information leak means the attacker may get back fragments of memory that were never meant to be part of the answer, since the decoded header contains data from memory outside the allocated string.
Fix
The report does not describe a patch or the change that was made. The upstream PHP bug entry (bug 78069) is the reference for the resolution.
Variants to test
- Other callers of the same decoder: any code path that reaches
_php_iconv_mime_decode()withICONV_MIME_DECODE_CONTINUE_ON_ERRORset is worth exercising with malformed encoded words, since the flag is a precondition here. - Encoded words with unrecognised charsets: the skip logic that searches for the remaining
?characters only runs when the charset is not recognised, so vary the charset token and the number of?separators. - Truncated terminators: inputs where the closing
?=falls at the very end of the buffer, so that the*(p1 + 1) == '='check and the following decrement land exactly on the boundary. A positive result is an ASAN or valgrind report of a read past the allocation. - Other unsigned length counters in parsers: look for
size_tloop counters that are decremented in more than one place per iteration, especially where abreakleaves the counter at zero before the loop update runs.
Hunting notes
This kind of bug hides in hand written parsers that walk a buffer with a pointer and an unsigned remaining-length counter, particularly where a switch state machine can advance both in the same iteration. The signals during review are loops of the form for (len = n; len > 0; len--, p++) combined with inner while loops that also decrement len, and any break that exits a state without re-checking the counter.
On the impact side, the researcher showed a concrete ASAN heap-buffer-overflow with a stack trace pointing at the exact source lines, a reproducible input file with its SHA-256 hash, and a clear explanation of how the decoded out-of-bounds bytes end up in the returned header value.
Glossary
- PHP: a programming language widely used to build websites and web applications.
- Extension: an optional bundle of extra functions that can be added to PHP.
- Character set: a defined mapping between characters and the numbers a computer stores for them.
- MIME: the standard that lets email carry formatted text, attachments and non-English characters.
- MIME encoded header: a header line in an email where special characters are packed into a
=?charset?encoding?text?=form. - Encoded word: one such
=?charset?encoding?text?=unit inside a header. - Decoder: the code that reads an encoded format and turns it back into ordinary text.
- Buffer: a block of memory holding data, here the header string being parsed.
- Pointer: a marker for a position in memory;
p1walks along the buffer. - Counter: a variable that tracks how much work remains, here
str_left. size_t: an unsigned integer type that can hold zero and positive values but never negatives.- Unsigned integer: a whole number type with no sign, so going below zero wraps around to the largest value instead.
- Integer overflow / wrap: what happens when a number goes past the range its type can hold and rolls over to the other end.
- Out-of-bounds read: reading memory outside the block a program was given.
- Buffer over-read: the weakness class for reading past the end of a buffer.
- Heap: the pool of memory a program uses for data created while it runs.
- Heap buffer overflow: an access outside a block of heap memory, as reported by ASAN here.
- ASAN (AddressSanitizer): a debugging tool that detects out-of-bounds and other memory errors at runtime.
- Valgrind: another tool for detecting memory errors, usable without recompiling.
- Stack trace: the list of function calls that led to a point in the program, most recent first.
switch/ state machine: code that picks a branch based on a state variable, herescan_stat.ICONV_MIME_DECODE_CONTINUE_ON_ERROR: a flag (value2) telling the decoder to keep going after an error.- Flag: a named option passed to a function to change its behaviour.
- Environment variable: a named setting passed to a program when it starts.
USE_ZEND_ALLOC=0: an environment setting that disables PHP's own memory manager.- Zend memory manager: PHP's internal layer that allocates and recycles memory.
- Command line binary (
sapi/cli/php): the PHP program run from a terminal rather than a web server. - Hexadecimal: a way of writing bytes as pairs of characters from 0 to 9 and a to f.
xxd: a tool that converts between raw bytes and hexadecimal text.- Pipe (
|): a shell operator that feeds one command's output into the next command. - Redirection (
>): a shell operator that writes a command's output into a file. - SHA-256 hash: a short fingerprint of a file's contents, used to confirm it is unchanged.
- CVSS: a scoring system for the severity of a security flaw; 8.2 is in the high range.
- Bounty: a payment made to a researcher who reports a valid security flaw.
- Information leak: unintended exposure of memory contents through a program's output.
- Remote attacker: someone who can trigger the flaw from outside, for example by sending an email.