Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary write issue #19

Open
MinghaoLin2000 opened this issue Aug 21, 2024 · 1 comment
Open

Arbitrary write issue #19

MinghaoLin2000 opened this issue Aug 21, 2024 · 1 comment

Comments

@MinghaoLin2000
Copy link

I audited the source code for this project. I found index accessing the memory is not limited in some op. For instance, below is a example.
case GPT: { registers[instructions[IP + 1]] = stack[SP]; printf("value:%d\n id:%d\n",instructions[IP + 1],IP); IP = IP + 1; break; }
I can control the instructions[IP+1] into arbitrary position, which can exceed the registers. I have attached my poc.
arbitraryWrite_poc.mac.zip

@MinghaoLin2000
Copy link
Author

[mac]% ./mac arbitraryWrite_poc.mac

[1] 34264 segmentation fault ./mac arbitraryWrite_poc.mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant