Repository navigation
Commit 1b776fe
fix(P2): narrow emoji tag carve-out to ISO-3166-2 codes (close smuggling bypass)
The previous carve-out exempted any run of tag chars between U+1F3F4 and
U+E007F across the full printable-ASCII tag range, so an attacker could
wrap a smuggled instruction as a fake subdivision flag and launder it
past detection. Restrict the carve-out to a 2-6 char lowercase-letter/
digit ISO-3166-2 subdivision code, which admits every real RGI flag but
flags any disguised payload. Add an adversarial test for the wrapped case.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>1 parent 6949d39 commit 1b776fe
2 files changed
Lines changed: 26 additions & 1 deletion
File tree
- src/skillspector/nodes/analyzers
- tests/nodes/analyzers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
132 | 143 | | |
133 | 144 | | |
134 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
131 | 145 | | |
132 | 146 | | |
133 | 147 | | |
| |||
0 commit comments