In Burp Intruder, how do a payload type and payload processing rules together produce the values that fill a position?
answer
- values come from a generator
- rules then reshape each value
- rules run in listed order
- final URL-encoding comes last
basics
~20 sThe payload type generates the raw values, such as a list, a number range or lines read from a file. Processing rules then change each value in sequence, and the optional final URL-encoding is applied after the rules, just before insertion.
solid answer
~30 sA **payload set** is built by its **payload type**: a simple list, a file read at runtime, a number range, a date range, a custom iterator and so on. **Payload processing rules** then transform each value before insertion, in the order listed, and each can be switched off for debugging. Rule types include add prefix, add suffix, match / replace, substring, encode, hash and skip if matches regex, the last of which removes values. The **final URL-encoding** setting runs after the rules. Digit settings matter: a Numbers range with a too-small maximum of integer digits truncates the most significant digits.
go deeper
Recall that a payload type produces the values and processing rules edit them before they go into the request.
Explain that rules run in the listed order, name a few rule types, and note that final URL-encoding happens after them and that Numbers digit settings can truncate.
Describe a generator and rule chain as a reproducible, bounded run, and record it so the owner can match the log to it.
Decide how much of a run's definition (type, range, rules) must be archived with the engagement record so findings can be retested without guessing.
## Two stages, one value Each value that Intruder places into a position passes through two stages. The **payload type** generates the raw value. **Payload processing rules** then modify it. A third, smaller setting, final URL-encoding, is applied last. Keeping the stages apart makes a run easy to audit: the owner can be told "item IDs 1000 to 1099, zero-padded to six digits" rather than shown a list. ## Stage one: the payload type | Payload type | What it produces | |---|---| | Simple list | the strings you paste or load, one per entry | | Runtime file | one payload per line, read from a file during the run so a very large list is not held in memory | | Numbers | a numeric range, sequential or random, in decimal or hexadecimal, with digit-count settings | | Dates | dates between a start and end at a chosen step | | Custom iterator | permutations built from a template of up to eight positions, each with its own list | | Null payloads | an empty string, which repeats the unmodified base request without needing positions | Many payload types offer **Deduplicate**, which removes repeated entries and so reduces the number of requests. Burp Suite Professional also includes predefined payload lists, some of which carry placeholders such as `{base}` that a match / replace processing rule has to fill in before the run. ## Stage two: processing rules - Rules run **in sequence**; Up and Down change the order and each rule can be toggled off, which helps when a result looks wrong. - Available rules include add prefix, add suffix, match / replace (a regular expression replaced by a literal string), substring, reverse substring, modify case, encode, decode, hash, add raw payload, skip if matches regex, invoke a Burp extension and replace placeholder with base value. - **Skip if matches regex** drops a value entirely, so it lowers the request count; the other rules change a value without changing how many there are. ## Stage three: final URL-encoding The **Payload encoding** setting URL-encodes characters you choose. It is applied after the processing rules, so a rule sees the unencoded value and the payload grep check for echoed values can still run against it. ## A harmless worked example Your staging catalogue numbers its items 1000 to 1099 and the API expects six-digit identifiers. Choose the Numbers type, from 1000 to 1099, step 1, sequential, base decimal, minimum integer digits 6. Each value is padded on the left with zeros. The run sends 100 requests and the owner can reproduce the list from those five settings. ## Pitfalls 1. **Truncation.** Max integer digits **truncates** values that are longer, losing the most significant digits, so a range from 995 to 1005 with a maximum of three digits turns 1000 into `000`. 2. **Precision.** Burp uses double-precision floating point for number ranges, so for ranges with more than about 12 digits the guidance is to mark only a sub-portion of the number as the position. 3. **Editing while running.** Changing the From or To field of a Numbers range during a run can end the attack abruptly. Pause first. 4. **Changing the type.** The payload type is part of the attack's structure and cannot be changed from the results window. 5. **Undocumented chains.** A processing chain that rewrites values heavily makes the final traffic hard for the owner to match to your notes; record the chain. ## Why it matters to the defender and the owner The generator and the rules are what make a run **reproducible and bounded**. Written down, they let the owner confirm that the log shows only the agreed range, and let a reviewer repeat the run after a fix.
- Which processing rule changes the number of requests, and which only changes values?Skip if matches regex removes any value that matches, so it can lower the request count. Prefix, suffix, match / replace, substring, case, encode, decode, hash and the others rewrite each value and leave the count unchanged. Deduplicating the list also lowers the count.
- Why is final URL-encoding a separate setting from the Encode processing rule?Final URL-encoding is applied after all rules have run, so it encodes the finished value for safe transmission and leaves earlier rules and the payload grep working on the unencoded form. The Encode rule is one step inside the sequence and can be ordered among the others.
- Says processing rules run in any order, so sequence does not matter
- Believes a Numbers range with too few integer digits fails loudly
- Thinks every processing rule can only rewrite values, never remove them
- Treats final URL-encoding as the first step, before the rules
- Claims the payload type can be switched in the results window mid-run