Test nginx rewrites for heap overflows
Look for rewrite directives in nginx configurations that contain a ? and no flag (like last, break, redirect, or permanent). If the rewrite is followed by a set or if directive that references a capture group (like $1), the configuration may be vulnerable to a heap overflow. The…