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

[CVE-2016-2563] confused with PoC #6

Closed
yongweiy opened this issue Jul 8, 2019 · 4 comments
Closed

[CVE-2016-2563] confused with PoC #6

yongweiy opened this issue Jul 8, 2019 · 4 comments

Comments

@yongweiy
Copy link

yongweiy commented Jul 8, 2019

Hi, @tintinweb !

I am getting lost when I am trying to reproduce this bug.

What is step 5 of PoC? Everything is reproduced until step 5. Is it the output of some other utility that is not specified in README?

My understanding is that the error message should be output of pscp. Am I getting is right?

Best,
Victor

@tintinweb
Copy link
Owner

Hi @VictorYYW,

that's pscp on windows debugged with windbg. the output shown is from windbg.

cheers,
tin

@yongweiy
Copy link
Author

yongweiy commented Jul 9, 2019

Oh, I see. I am trying to reproduce it in Debian docker container. What I have is that, pscp exit with code 1 in gdb and an error message "Fatal: Server unexpectedly closed network connection", which is expected from my perspective because the server closed the connection after peer did not ask for a shell.

Is it the expected behavior? If not, do you have any suggestion? Thank you for your time! @tintinweb

@tintinweb
Copy link
Owner

@VictorYYW Verify that you're running a vulnerable version of pscp. It unexpectedly closes the connection because it crashes. attach gdb to pscp before trriggering the poc to catch the segmentation fault and continue analyzing it (there's great tutorials about that online :)

gdb --args pscp arg1 arg2 arg3

cheers

@yongweiy
Copy link
Author

yongweiy commented Jul 9, 2019

@tintinweb I just checked the source file and found the vulnerable code remained not fixed.

I have a basic knowledge of gdb. Here's what I have found.
image
image
It would be great if you give me any hint!

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

2 participants