Skip to content
Memory corruption Disclosed report Advanced

Unsafe arithmetic in PyString_DecodeEscape

An integer overflow in Python 2.7's string escape decoding could allocate a buffer that is too small, leading to a heap buffer overflow when a large string is processed. An attacker could exploit this to cause heap corruption, potentially leading to arbitrary code execution.

jaybosamiya Follow

Originally disclosed on HackerOne

Bounty$500 Low View original
  • Fixed in 23 days
  • Paid in 23 days
  • Disclosed after 58 days

I have submitted a vulnerability that has now been fixed. The report includes a proof of concept that demonstrates reliable heap corruption through integer overflow. I also submitted a patch which was accepted and merged.

https://bugs.python.org/issue30657


In Python 2.7, there is a possible integer overflow in PyString_DecodeEscape function of the file stringobject.c, which can be abused to gain a heap overflow, possibly leading to arbitrary code execution.

The relevant parts of the code are highlighted below:

    PyObject *PyString_DecodeEscape(const char *s,
                                    Py_ssize_t len,
                                    const char *errors,
                                    Py_ssize_t unicode,
                                    const char *recode_encoding)
    {
        int c;
        char *p, *buf;
        const char *end;
        PyObject *v;
(1)     Py_ssize_t newlen = recode_encoding ? 4*len:len;
(2)     v = PyString_FromStringAndSize((char *)NULL, newlen);
        if (v == NULL)
            return NULL;
(3)     p = buf = PyString_AsString(v);
        end = s + len;
        while (s < end) {
            if (*s != '\\') {
              non_esc:
    #ifdef Py_USING_UNICODE
    [...]
    #else
(4)             *p++ = *s++;
    #endif
                continue;
    [...]
            }
        }
        if (p-buf < newlen)
            _PyString_Resize(&v, p - buf); /* v is cleared on error */
        return v;
      failed:
        Py_DECREF(v);
        return NULL;
    }

(1) If recode_encoding is true (i.e., non-null), we have an integer overflow here which can set newlen to be some very small value (2) This allows a small string to be created into v (3) Now p (and buf) use that small string (4) The small string is copied into with a larger string, thereby giving a heap buffer overflow

In the highly unlikely but definitely possible situation that we pass it a very large string (in the order of ~1GB on a 32-bit Python install), one can reliably get heap corruption. It is possible to access this function (and condition in line(1)) through function parsestr from ast.c, when the file encoding of an input .py file is something apart from utf-8 and iso-8859-1. This can be trivially done using the following at the start of the file:

    # -*- coding: us-ascii -*-

The attached file (poc-gen.py) produces a poc.py file which satisfies these constraints and shows the vulnerability.

Note: To see the vulnerability in action, it is necessary to have an ASAN build of Python, compiled for 32 bit on a 64 bit machine. Additionally, the poc.py file generated can take an extremely long time to load (over a few hours), and finally crash. Instead, if one wishes to see the proof of vulnerability quicker, then it might be better to change the constant 4 in line (1) to 65536 (just for simplicity sake), and change the multiplication_constant in poc-gen.py file to be the same (i.e. 65536).

Proposed fix: Confirm that the multiplication will not overflow, before actually performing the multiplication and depending on the result.


https://github.com/python/cpython/pull/2174

diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index c78e193..59d22e7 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -612,7 +612,13 @@ PyObject *PyString_DecodeEscape(const char *s,
     char *p, *buf;
     const char *end;
     PyObject *v;
-    Py_ssize_t newlen = recode_encoding ? 4*len:len;
+    Py_ssize_t newlen;
+    /* Check for integer overflow */
+    if (recode_encoding && (len > PY_SSIZE_T_MAX / 4)) {
+        PyErr_SetString(PyExc_OverflowError, "string is too large");
+        return NULL;
+    }
+    newlen = recode_encoding ? 4*len:len;
     v = PyString_FromStringAndSize((char *)NULL, newlen);
     if (v == NULL)
         return NULL;

The original report as published on HackerOne, by jaybosamiya. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Python 2.7's string handling includes PyString_DecodeEscape in Objects/stringobject.c, the routine that turns escape sequences in a string literal into the bytes they represent. When a source file declares an encoding other than UTF-8 or ISO-8859-1, the parser reaches this function through parsestr in ast.c, passing a recode_encoding argument. That argument changes how the output buffer is sized, and the sizing arithmetic is where the bug lives.

The issue was reported to the Internet Bug Bounty programme against the Python (Legacy) asset, rated low severity, and paid a 500 USD bounty. The researcher also submitted a patch, which was accepted and merged. The upstream bug is tracked as bugs.python.org/issue30657 and the fix landed as python/cpython#2174.

Setup

The report describes no accounts, roles or remote services. The preconditions are local and specific:

  1. A 32-bit Python 2.7 build, so that Py_ssize_t is 32 bits wide and the multiplication can wrap within a realistic input size.
  2. An ASAN build of Python, compiled for 32 bit on a 64 bit machine, to observe the heap corruption.
  3. A generated poc.py file whose declared encoding is not UTF-8 or ISO-8859-1, produced by the attached poc-gen.py.

The researcher notes that loading the generated poc.py can take an extremely long time, over a few hours, before it finally crashes.

Finding it

The suspicious line is the computation of the output buffer length:

C
    PyObject *PyString_DecodeEscape(const char *s,
                                    Py_ssize_t len,
                                    const char *errors,
                                    Py_ssize_t unicode,
                                    const char *recode_encoding)
    {
        int c;
        char *p, *buf;
        const char *end;
        PyObject *v;
(1)     Py_ssize_t newlen = recode_encoding ? 4*len:len;
(2)     v = PyString_FromStringAndSize((char *)NULL, newlen);
        if (v == NULL)
            return NULL;
(3)     p = buf = PyString_AsString(v);
        end = s + len;
        while (s < end) {
            if (*s != '\\') {
              non_esc:
    #ifdef Py_USING_UNICODE
    [...]
    #else
(4)             *p++ = *s++;
    #endif
                continue;
    [...]
            }
        }
        if (p-buf < newlen)
            _PyString_Resize(&v, p - buf); /* v is cleared on error */
        return v;
      failed:
        Py_DECREF(v);
        return NULL;
    }

When recode_encoding is non-null, the length is multiplied by four to leave room for the worst-case expansion of an escape sequence. The multiplication is performed without any check that the result fits in a Py_ssize_t. On a 32-bit build, a len in the order of roughly 1 GB makes 4*len wrap around to a very small value.

Exploitation

Step 1: force the recode path with a non-default encoding

The vulnerable branch is only taken when the file encoding is something other than UTF-8 or ISO-8859-1. The researcher shows that this is trivially arranged by putting a coding declaration at the start of the file:

Text
    # -*- coding: us-ascii -*-

With that declaration, parsestr in ast.c calls PyString_DecodeEscape with a non-null recode_encoding, so line (1) takes the 4*len branch.

Step 2: supply a very large string

The input must be a string in the order of about 1 GB on a 32-bit Python install. At that size, 4*len overflows and newlen becomes some very small value.

Step 3: the overflow becomes a heap overflow

The four annotated lines describe the chain:

  1. The integer overflow at line (1) sets newlen to a very small value.
  2. PyString_FromStringAndSize at line (2) therefore allocates a small string for v.
  3. p and buf at line (3) point into that small allocation.
  4. The copy loop at line (4) writes the full input into it, byte by byte, running far past the end of the allocation. That is the heap buffer overflow.

The researcher describes this as reliable heap corruption, and states that it can possibly lead to arbitrary code execution.

Step 4: generate and load the proof of concept

The attached poc-gen.py produces a poc.py file that satisfies the constraints above and demonstrates the vulnerability. Because the real trigger needs a roughly 1 GB input, loading the generated file can take over a few hours before the crash.

For a faster demonstration, the researcher suggests temporarily changing the constant 4 in line (1) to 65536, and changing the multiplication_constant in poc-gen.py to the same value, 65536. This shrinks the input needed to reach the overflow while keeping the same arithmetic flaw.

Root cause

newlen is computed as 4*len whenever recode_encoding is set, with no check that the multiplication stays within the range of Py_ssize_t. On a 32-bit build the product wraps for large inputs, the allocation is sized from the wrapped value, and the subsequent copy uses the original, much larger length. The only guard afterwards, if (p-buf < newlen) _PyString_Resize(&v, p - buf);, compares against the already-corrupted newlen and cannot prevent the overwrite, which happens during the copy loop itself.

Impact

The report frames the impact as heap corruption that can possibly lead to arbitrary code execution. Reaching it requires a 32-bit Python 2.7 installation and a string of roughly 1 GB, which the researcher calls highly unlikely but definitely possible. The programme rated the issue low severity.

Fix

The researcher proposed confirming that the multiplication will not overflow before performing it, and depending on the result. The merged patch does exactly that:

Diff
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index c78e193..59d22e7 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -612,7 +612,13 @@ PyObject *PyString_DecodeEscape(const char *s,
     char *p, *buf;
     const char *end;
     PyObject *v;
-    Py_ssize_t newlen = recode_encoding ? 4*len:len;
+    Py_ssize_t newlen;
+    /* Check for integer overflow */
+    if (recode_encoding && (len > PY_SSIZE_T_MAX / 4)) {
+        PyErr_SetString(PyExc_OverflowError, "string is too large");
+        return NULL;
+    }
+    newlen = recode_encoding ? 4*len:len;
     v = PyString_FromStringAndSize((char *)NULL, newlen);
     if (v == NULL)
         return NULL;

Instead of multiplying and checking afterwards, the patch divides the maximum value by four and rejects any len above that threshold with an OverflowError, so the multiplication can never wrap.

Variants to test

  1. Other length computations that multiply a user-controlled size by a constant before allocating. A positive result is a wrapped allocation size followed by a copy that uses the original length.
  2. Other callers that pass a recode or expansion factor into a buffer-sizing routine. Look for the pattern where the allocation is sized from one expression and the write loop is bounded by another.
  3. Encoding declarations as an input to parsers. Any parser that switches code paths based on a declared charset is worth checking for size arithmetic that only runs on the non-default path.
  4. Post-allocation guards that compare against the same variable used for the allocation. If the guard uses the corrupted value, it will not fire; a positive result is a resize or bounds check that never triggers during the overwrite.

Hunting notes

This class of bug hides in size arithmetic on paths that are only taken under special conditions, such as a non-default encoding, and in code that trusts a multiplication to fit in the platform's word size. The signal during review is a multiplication of an input length by a constant feeding an allocation, with the copy loop bounded by the original length. The report includes a generator for the proof-of-concept file, the build needed to observe it, and a patch that was accepted and merged. That combination of reproducible proof and a concrete fix is what carried the report through the programme.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 13 min read.

What happened, in plain words

A security researcher found a bug in Python 2.7, the older version of the Python programming language. The bug is a type called an integer overflow, which is a mistake in arithmetic that makes a computer calculate a number that is far too small, and then use that wrong number to decide how much memory to set aside. When the program later writes more data than it reserved, it spills over into neighbouring memory. That spill is called a heap buffer overflow, and it can crash a program or, in the worst case, let an attacker run their own code.

The researcher reported it to the Internet Bug Bounty programme, which pays people for finding bugs in widely used software. The report was rated low severity and paid a 500 USD bounty. The researcher also wrote a fix, which the Python project accepted and merged. The upstream bug is tracked as bugs.python.org/issue30657 and the fix landed as python/cpython#2174.

To follow the rest of this article you only need to understand a few ideas, explained as they come up.

Background: what the code does

Python source files are plain text. Inside a string in that text, you can write special sequences that start with a backslash, such as a backslash followed by the letter n to mean "new line". The part of Python that reads source files has to turn those written sequences into the actual characters they stand for. In Python 2.7, one routine that does this is called PyString_DecodeEscape, and it lives in a file called Objects/stringobject.c.

A source file can also declare which encoding it uses. An encoding is a rulebook that maps bytes to characters, because the same byte can mean different letters in different rulebooks. Python assumes UTF-8 unless told otherwise, and it also treats ISO-8859-1 specially. When a file declares any other encoding, the parser takes a different path: it calls PyString_DecodeEscape through a function called parsestr in ast.c, and it passes an argument named recode_encoding. That argument changes how much memory the routine reserves for its output, and the arithmetic that works out that amount is where the bug lives.

Setup: what you need to see it

The report describes no accounts, no logins and no remote services. Everything happens on one machine, and the conditions are specific:

  1. A 32-bit build of Python 2.7. "32-bit" describes how wide the numbers used for sizes are. On a 32-bit build, the size type Py_ssize_t is 32 bits wide, which means it can only hold numbers up to a certain limit before it wraps around to a small value.
  2. An ASAN build of Python, compiled for 32 bit on a 64 bit machine. ASAN stands for AddressSanitizer, a tool built into a compiler that watches memory while a program runs and shouts loudly the moment a program writes outside the memory it was given. Without it, a heap overflow can go unnoticed or crash in a confusing place.
  3. A generated file called poc.py, produced by an attached script called poc-gen.py. "PoC" stands for proof of concept: a small, deliberate demonstration that a bug is real. The generated file declares an encoding that is not UTF-8 or ISO-8859-1, which is what forces the vulnerable path.

The researcher warns that loading the generated poc.py can take an extremely long time, over a few hours, before it finally crashes. That is because the real trigger needs a huge input, as explained below.

Finding it: the suspicious line

Here is the relevant part of the function, copied from the report with the researcher's numbered markers:

C
    PyObject *PyString_DecodeEscape(const char *s,
                                    Py_ssize_t len,
                                    const char *errors,
                                    Py_ssize_t unicode,
                                    const char *recode_encoding)
    {
        int c;
        char *p, *buf;
        const char *end;
        PyObject *v;
(1)     Py_ssize_t newlen = recode_encoding ? 4*len:len;
(2)     v = PyString_FromStringAndSize((char *)NULL, newlen);
        if (v == NULL)
            return NULL;
(3)     p = buf = PyString_AsString(v);
        end = s + len;
        while (s < end) {
            if (*s != '\\') {
              non_esc:
    #ifdef Py_USING_UNICODE
    [...]
    #else
(4)             *p++ = *s++;
    #endif
                continue;
    [...]
            }
        }
        if (p-buf < newlen)
            _PyString_Resize(&v, p - buf); /* v is cleared on error */
        return v;
      failed:
        Py_DECREF(v);
        return NULL;
    }

Line by line, in plain words:

  • The first lines declare the function and its inputs. s is the text to process, len is how long that text is, and recode_encoding is the argument that says whether the output needs to be re-encoded.
  • int c; and the pointer declarations set up working variables. A pointer is a variable that holds the memory address of something else, like a note that says "the data is over there" rather than holding the data itself.
  • Line (1) works out how much room the output needs. The ? : syntax is a compact if/else: if recode_encoding is set, use 4*len, otherwise use len. The factor of four leaves room for the worst case, where one written escape sequence expands into several bytes. The result is stored in newlen.
  • Line (2) asks Python to create a string object v with room for newlen bytes. If that fails, the function returns nothing.
  • Line (3) gets a pointer to the inside of that new string and stores it in both p and buf. p is the moving write position; buf stays at the start so the code can later measure how far it got.
  • end = s + len; marks where the input stops.
  • The while loop walks through the input one character at a time. If the character is not a backslash, it is copied straight across at line (4): *p++ = *s++; means "take the character s points at, store it where p points, then move both pointers forward by one".
  • The [...] marks code the report leaves out, which handles the backslash cases.
  • After the loop, if (p-buf < newlen) checks whether the output came out shorter than reserved, and if so shrinks the string to fit.

The problem is on line (1). When recode_encoding is set, the length is multiplied by four with no check that the answer still fits in a Py_ssize_t. On a 32-bit build, a len of roughly 1 GB makes 4*len wrap around to a very small value. Think of an old car odometer that rolls from 999999 back to 000000: the number shown is tiny, but the distance travelled was huge. The computer does the same thing with fixed-width numbers.

Exploitation: how the bug is triggered

Step 1: force the recode path with a non-default encoding

The vulnerable branch only runs when the file's encoding is something other than UTF-8 or ISO-8859-1. The researcher shows this is trivially arranged by putting a coding declaration at the very start of the file:

Text
    # -*- coding: us-ascii -*-

This line is a comment that Python reads as an instruction. It says "this file is written in US-ASCII". Because that is neither UTF-8 nor ISO-8859-1, parsestr in ast.c calls PyString_DecodeEscape with a non-null recode_encoding, so line (1) takes the 4*len branch. Without this line, the buggy arithmetic is never reached.

Step 2: supply a very large string

The input has to be a string in the order of about 1 GB on a 32-bit Python install. At that size, 4*len overflows and newlen becomes some very small value. This is why the generated proof-of-concept file takes hours to load: it has to be enormous to reach the threshold.

Step 3: the overflow becomes a heap overflow

The four numbered lines describe a chain of events:

  1. The integer overflow at line (1) sets newlen to a very small value.
  2. PyString_FromStringAndSize at line (2) therefore reserves only a small amount of memory for v.
  3. p and buf at line (3) point into that small reservation.
  4. The copy loop at line (4) writes the full input into it, byte by byte, running far past the end of what was reserved. That is the heap buffer overflow.

"Heap" is the general-purpose pool of memory a program uses for data it creates while running. Reserving a small box in that pool and then pouring a much larger amount of data into it means the extra data lands in whatever memory sits next door, corrupting it. The researcher describes this as reliable heap corruption, and states that it can possibly lead to arbitrary code execution, meaning an attacker could potentially make the program run instructions of their choosing.

Step 4: generate and load the proof of concept

The attached poc-gen.py produces a poc.py file that satisfies the constraints above and demonstrates the vulnerability. Because the real trigger needs a roughly 1 GB input, loading the generated file can take over a few hours before the crash.

For a faster demonstration, the researcher suggests temporarily changing the constant 4 in line (1) to 65536, and changing the multiplication_constant in poc-gen.py to the same value, 65536. This shrinks the input needed to reach the overflow while keeping the same arithmetic flaw. In other words, you make the multiplier bigger so the wrap-around happens with a much smaller input, which saves you hours of waiting while still proving the same mistake.

Root cause

newlen is computed as 4*len whenever recode_encoding is set, with no check that the multiplication stays within the range of Py_ssize_t. On a 32-bit build the product wraps for large inputs, the memory reservation is sized from the wrapped value, and the subsequent copy uses the original, much larger length. The only guard afterwards, if (p-buf < newlen) _PyString_Resize(&v, p - buf);, compares against the already-corrupted newlen and cannot prevent the overwrite, which happens during the copy loop itself. A guard that checks the wrong number is like a door alarm wired to a door that is already open: it cannot stop what has already happened.

Impact

The report frames the impact as heap corruption that can possibly lead to arbitrary code execution. Reaching it requires a 32-bit Python 2.7 installation and a string of roughly 1 GB, which the researcher calls highly unlikely but definitely possible. The programme rated the issue low severity.

Fix

The researcher proposed confirming that the multiplication will not overflow before performing it, and depending on the result. The merged patch does exactly that:

Diff
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index c78e193..59d22e7 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -612,7 +612,13 @@ PyObject *PyString_DecodeEscape(const char *s,
     char *p, *buf;
     const char *end;
     PyObject *v;
-    Py_ssize_t newlen = recode_encoding ? 4*len:len;
+    Py_ssize_t newlen;
+    /* Check for integer overflow */
+    if (recode_encoding && (len > PY_SSIZE_T_MAX / 4)) {
+        PyErr_SetString(PyExc_OverflowError, "string is too large");
+        return NULL;
+    }
+    newlen = recode_encoding ? 4*len:len;
     v = PyString_FromStringAndSize((char *)NULL, newlen);
     if (v == NULL)
         return NULL;

This is a diff, a standard way of showing a change to a file. Lines starting with a minus sign are the old code being removed; lines starting with a plus sign are the new code being added; lines with no sign are unchanged context.

Line by line:

  • The old line computed newlen immediately, multiplying by four with no check. It is removed.
  • The new code first declares newlen without giving it a value.
  • A comment marks the purpose: checking for integer overflow.
  • The if statement asks two things at once. Is recode_encoding set, and is len greater than PY_SSIZE_T_MAX / 4? PY_SSIZE_T_MAX is the largest number the size type can hold. Dividing it by four gives the largest input that can safely be multiplied by four. If len is above that, the multiplication would wrap, so the code refuses.
  • When the input is too large, PyErr_SetString raises an OverflowError with the message "string is too large", and the function returns nothing. The caller gets a clear error instead of silent memory corruption.
  • Only if the check passes does the original multiplication run.

Instead of multiplying and checking afterwards, the patch divides the maximum value by four and rejects any len above that threshold, so the multiplication can never wrap. It is the arithmetic equivalent of asking "will this fit?" before packing the suitcase, rather than discovering it does not fit after the zip has broken.

Variants to test

If you are learning to look for this kind of bug, these are the patterns worth checking:

  1. Other length computations that multiply a user-controlled size by a constant before reserving memory. A positive result is a wrapped reservation size followed by a copy that uses the original length.
  2. Other callers that pass a recode or expansion factor into a routine that sizes a buffer. Look for the pattern where the reservation is sized from one expression and the write loop is bounded by another.
  3. Encoding declarations as an input to parsers. Any parser that switches code paths based on a declared charset is worth checking for size arithmetic that only runs on the non-default path.
  4. Post-allocation guards that compare against the same variable used for the reservation. If the guard uses the corrupted value, it will not fire; a positive result is a resize or bounds check that never triggers during the overwrite.

Hunting notes

This class of bug hides in size arithmetic on paths that are only taken under special conditions, such as a non-default encoding, and in code that trusts a multiplication to fit in the platform's word size. The signal during review is a multiplication of an input length by a constant feeding a memory reservation, with the copy loop bounded by the original length. The report includes a generator for the proof-of-concept file, the build needed to observe it, and a patch that was accepted and merged. That combination of reproducible proof and a concrete fix is what carried the report through the programme.

Glossary

  • Integer overflow: an arithmetic mistake where a number grows past the largest value a fixed-width type can hold and wraps around to a small value, like an odometer rolling over.
  • Heap: the pool of memory a program uses for data it creates while running, as opposed to memory reserved in advance for fixed purposes.
  • Heap buffer overflow: writing more data into a reserved block of heap memory than it can hold, so the extra data corrupts neighbouring memory.
  • Arbitrary code execution: a worst-case outcome where an attacker can make a program run instructions of their choosing.
  • PyString_DecodeEscape: the Python 2.7 routine in Objects/stringobject.c that turns written escape sequences in a string into the characters they represent.
  • Escape sequence: a short written sequence starting with a backslash that stands for a special character, such as a new line.
  • Encoding: a rulebook mapping bytes to characters, such as UTF-8 or ISO-8859-1.
  • UTF-8 / ISO-8859-1: two common encodings; Python treats them as defaults, so a file declaring either does not take the vulnerable path.
  • Parser: the part of a program that reads source text and works out its structure.
  • parsestr: the function in ast.c that calls PyString_DecodeEscape when a file declares a non-default encoding.
  • recode_encoding: the argument that tells PyString_DecodeEscape the output needs re-encoding, which switches on the multiplication by four.
  • Py_ssize_t: the integer type Python uses for sizes and lengths; its width depends on whether the build is 32-bit or 64-bit.
  • 32-bit build: a build where size numbers are 32 bits wide, so they wrap at a much lower value than on a 64-bit build.
  • ASAN (AddressSanitizer): a compiler tool that watches memory during a run and reports the moment a program writes outside its reserved memory.
  • Pointer: a variable holding a memory address rather than the data itself.
  • Buffer: a reserved block of memory used to hold data while it is being processed.
  • Proof of concept (PoC): a small, deliberate demonstration that a bug is real and reachable.
  • poc-gen.py / poc.py: the attached generator script and the large file it produces to trigger the bug.
  • Coding declaration: a comment at the top of a Python file, such as # -*- coding: us-ascii -*-, that states the file's encoding.
  • PY_SSIZE_T_MAX: the largest value the size type can hold, used in the fix to work out the safe input limit.
  • OverflowError: the Python error raised by the fix when an input is too large to process safely.
  • Diff: a standard format for showing changes to a file, with minus lines removed and plus lines added.
  • Bounty: a payment made by a programme to a researcher for reporting a valid security bug.
  • Severity: a rating of how serious a bug is; this one was rated low.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.