Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

getVariableToken() bypass #1

Closed
chinurho opened this issue Mar 5, 2014 · 5 comments
Closed

getVariableToken() bypass #1

chinurho opened this issue Mar 5, 2014 · 5 comments
Assignees
Labels

Comments

@chinurho
Copy link

chinurho commented Mar 5, 2014

PHP variables syntax parsers:

T_VARIABLE
'$' '{' expr '}'

Therefore, variables allows for the use of complex expressions in ${}.
Well, getVariableToken() can be bypassed, like tihs:

${@func}($evil);
${2+1}($evil);
${1?func:func}($evil);
...
@cfc4n
Copy link
Owner

cfc4n commented Mar 6, 2014

Yes, It's a bug. I'ill fixed it today. thank you very much.

@cfc4n
Copy link
Owner

cfc4n commented Mar 6, 2014

hi,chinurho:
It's fixed at 0.4.3.Can you do once again to verify it?
thanks.

@chinurho
Copy link
Author

chinurho commented Mar 7, 2014

bypass fix:

${${func}}($evil);
${(array)function(){}}($evil);

@cfc4n
Copy link
Owner

cfc4n commented Mar 11, 2014

eh.You are right.I'll try it again.

@cfc4n
Copy link
Owner

cfc4n commented May 27, 2014

OMG,I forget it for long time...So sorry.and I fixed it ,You'll try it again If you sow it.Thanks.

@cfc4n cfc4n closed this as completed Oct 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants