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

Gadget pattern mismatches in Edge chakra.dll #8

Open
lmy375 opened this issue Nov 5, 2018 · 0 comments
Open

Gadget pattern mismatches in Edge chakra.dll #8

lmy375 opened this issue Nov 5, 2018 · 0 comments

Comments

@lmy375
Copy link

lmy375 commented Nov 5, 2018

Hi,
Thanks for opening source such excellent exploit framework.

I found that the gadget pattern need change in the latest chakra.dll(2018/11/05).

The entrySlice pattern in the code is 0x8B, 0xF8, 0x41, 0x83, -1, 0x02, which matches code in Js::JavascriptString::EntryLocaleCompare instead of Js::JavascriptString::EntrySlice now.

// Js::JavascriptString::EntryLocaleCompare
.text:0000000180075ACA E8 CD 6F 1E 00                                call    ?GetEngineExtension@EngineInterfaceObject@Js@@QEBAPEAVEngineExtensionObjectBase@2@W4EngineInterfaceExtensionKind@2@@Z ; Js::EngineInterfaceObject::GetEngineExtension(Js::EngineInterfaceExtensionKind)
.text:0000000180075ACF 48 8B F8                                      mov     rdi, rax
.text:0000000180075AD2 41 83 FC 02                                   cmp     r12d, 2
// Js::JavascriptString::EntrySlice
.text:000000018026B350 E8 DF 20 ED FF                                call    ?ConvertToIndex@JavascriptString@Js@@CAIPEAXPEAVScriptContext@2@@Z ; Js::JavascriptString::ConvertToIndex(void *,Js::ScriptContext *)
.text:000000018026B355 8B D8                                         mov     ebx, eax
.text:000000018026B357 41 83 FF 02                                   cmp     r15d, 2

We may need more compatible pattern or searching approach for new version Edge.

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