StanzaAPI commited on
Commit ·
ea9dcf3
1
Parent(s): 452c9b5
Publish iban test data
Browse files- CITATION.cff +1 -1
- README.md +1 -1
- adversarial/iban-adversarial.csv +0 -0
- adversarial/iban-adversarial.json +25 -1
CITATION.cff
CHANGED
|
@@ -4,7 +4,7 @@ title: "IBAN Test Data"
|
|
| 4 |
abstract: "One valid test IBAN per country, generated deterministically and checked with the ISO 7064 MOD-97 algorithm. None is a real account."
|
| 5 |
type: dataset
|
| 6 |
license: CC0-1.0
|
| 7 |
-
version: "1.0.
|
| 8 |
date-released: "2026-10-01"
|
| 9 |
authors:
|
| 10 |
- name: "StanzaAPI"
|
|
|
|
| 4 |
abstract: "One valid test IBAN per country, generated deterministically and checked with the ISO 7064 MOD-97 algorithm. None is a real account."
|
| 5 |
type: dataset
|
| 6 |
license: CC0-1.0
|
| 7 |
+
version: "1.0.2"
|
| 8 |
date-released: "2026-10-01"
|
| 9 |
authors:
|
| 10 |
- name: "StanzaAPI"
|
README.md
CHANGED
|
@@ -41,7 +41,7 @@ https://stanzaapi.com/datasets/iban
|
|
| 41 |
|
| 42 |
## Security: adversarial corpus
|
| 43 |
|
| 44 |
-
This dataset ships a catalogued **adversarial corpus** of
|
| 45 |
(injection, XXE, resource exhaustion, encoding attacks, validation bypass, structural confusion,
|
| 46 |
and prompt injection for AI agents) with the safe expected behaviour. See
|
| 47 |
[`adversarial/`](adversarial/) or the [hub](https://stanzaapi.com/datasets/adversarial).
|
|
|
|
| 41 |
|
| 42 |
## Security: adversarial corpus
|
| 43 |
|
| 44 |
+
This dataset ships a catalogued **adversarial corpus** of 12 hostile inputs
|
| 45 |
(injection, XXE, resource exhaustion, encoding attacks, validation bypass, structural confusion,
|
| 46 |
and prompt injection for AI agents) with the safe expected behaviour. See
|
| 47 |
[`adversarial/`](adversarial/) or the [hub](https://stanzaapi.com/datasets/adversarial).
|
adversarial/iban-adversarial.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
adversarial/iban-adversarial.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/iban/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "iban",
|
| 7 |
-
"count":
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "iban-sql-injection",
|
|
@@ -115,6 +115,30 @@
|
|
| 115 |
"expected": "Reject: only ASCII digits are valid.",
|
| 116 |
"rationale": "Some normalisers fold full-width digits to ASCII, changing the value.",
|
| 117 |
"cwe": "CWE-176"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
]
|
| 120 |
}
|
|
|
|
| 4 |
"source": "https://stanzaapi.com/datasets/iban/adversarial",
|
| 5 |
"license": "CC0-1.0",
|
| 6 |
"format": "iban",
|
| 7 |
+
"count": 12,
|
| 8 |
"cases": [
|
| 9 |
{
|
| 10 |
"id": "iban-sql-injection",
|
|
|
|
| 115 |
"expected": "Reject: only ASCII digits are valid.",
|
| 116 |
"rationale": "Some normalisers fold full-width digits to ASCII, changing the value.",
|
| 117 |
"cwe": "CWE-176"
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "iban-whitespace-grouping",
|
| 121 |
+
"format": "iban",
|
| 122 |
+
"category": "encoding",
|
| 123 |
+
"severity": "high",
|
| 124 |
+
"title": "Human-printed grouping treated as valid input",
|
| 125 |
+
"payload": "DE89 3704 0044 0532 0130 00",
|
| 126 |
+
"expected": "Either reject the spaced form, or strip it once and re-validate against the canonical unspaced value — never let one layer strip while another compares raw.",
|
| 127 |
+
"rationale": "IBANs are printed in groups of four. A parser that strips whitespace accepts this and a parser that does not rejects it, so a value that validated at the edge can fail at the bank — or vice versa.",
|
| 128 |
+
"cwe": "CWE-20",
|
| 129 |
+
"evades": "length + charset (if whitespace is stripped)"
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"id": "iban-lowercase-casefold",
|
| 133 |
+
"format": "iban",
|
| 134 |
+
"category": "validation-bypass",
|
| 135 |
+
"severity": "high",
|
| 136 |
+
"title": "Lower-case IBAN accepted by case folding",
|
| 137 |
+
"payload": "de89370400440532013000",
|
| 138 |
+
"expected": "Reject lower case, or upper-case exactly once at the boundary and use that canonical form everywhere downstream.",
|
| 139 |
+
"rationale": "ISO 13616 defines the IBAN in upper case, but MOD-97 is case-insensitive once letters are folded to digits. A parser that folds silently accepts this, so the stored value and the compared value can diverge.",
|
| 140 |
+
"cwe": "CWE-20",
|
| 141 |
+
"evades": "MOD-97 (after case folding)"
|
| 142 |
}
|
| 143 |
]
|
| 144 |
}
|