Live data from Hacker News

eBay remote code execution

secalert.net

11–17 of 17 posts

Re: eBay remote code execution

#13
post #8
post #5

I'm curious if corporations like ebay respond with a grateful "thank you" or rather threaten to throw you in prison?

With open arms — https://www.paypal.com/us/webapps/mpp/security-tools/reporti...

More and more, like this. In the bad old days, it was more of the latter.

Re: eBay remote code execution

#14
A very interesting exploit.

This phrase "internally php strings are byte arrays. As a result accessing or modifying a string using array brackets will trick the parser into evaluating arbitrary php code in the scope of the variable if the prior mentioned requirements are met." doesn't seem to be present in the linked documentation (http://www.php.net/manual/en/language.types.string.php), however. Does anyone know what these "prior mentioned requirements" might be?

Re: eBay remote code execution

#15

A very interesting exploit. This phrase "internally php strings are byte arrays. As a result accessing or modifying a string using array brackets will trick the parser into evaluating arbitrary php code in the scope of the variable if the prior mentioned requirements are met." doesn't seem to be present in the linked documentation ( http://www.php.net/manual/en/language.types.string.php ), however. Does anyone know w…

The actual quote from the manual, that they appear to be referencing, is:

Internally, PHP strings are byte arrays. As a result, accessing or modifying a string using array brackets is not multi-byte safe, and should only be done with strings that are in a single-byte encoding such as ISO-8859-1.

It seems like they just replaced:

is not multi-byte safe, and should only be done with strings that are in a single-byte encoding such as ISO-8859-1.

...with...

will trick the parser into evaluating arbitrary php code in the scope of the variable if the prior mentioned requirements are met.

Re: eBay remote code execution

#16
Any links to other blogs/sites where the hacker talks through their thought process like this?

There are plenty of online databases which list exploits but I feel like you can learn a lot more from the process they used to come up with the exploit, as given here.

Re: eBay remote code execution

#17

A very interesting exploit. This phrase "internally php strings are byte arrays. As a result accessing or modifying a string using array brackets will trick the parser into evaluating arbitrary php code in the scope of the variable if the prior mentioned requirements are met." doesn't seem to be present in the linked documentation ( http://www.php.net/manual/en/language.types.string.php ), however. Does anyone know w…

The actual quote from the manual, that they appear to be referencing, is: Internally, PHP strings are byte arrays. As a result, accessing or modifying a string using array brackets is not multi-byte safe, and should only be done with strings that are in a single-byte encoding such as ISO-8859-1. It seems like they just replaced: is not multi-byte safe, and should only be done with strings that are in a single-byte en…

But multi-byte safety is one thing, and executing arbitrary code is another.

It's still not an explanation of how you go from injecting a deformed string to executing code.

Post reply on HN