forked fromskx/simple.vm
- Notifications
You must be signed in to change notification settings - Fork0
Commitd6bf4b3
Anadote
Moved Stack increment higher
This can potentially be turned into a information leak.If SP = 1023, then it will pass the check before being updated to 1024.This gives us a OOB, which allows u to set the value of SP to 0-0xffff.With careful heap control, you can get a pointer.This can be stored/examined by the program using ret,as they do not do an upper bound check.1 parent9c5c23a commitd6bf4b3
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
1167 | 1169 | | |
1168 | 1170 | | |
1169 | 1171 | | |
| |||
1172 | 1174 | | |
1173 | 1175 | | |
1174 | 1176 | | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | 1177 | | |
1179 | 1178 | | |
1180 | 1179 | | |
| |||
0 commit comments
Comments
(0)