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

Check access rule before updating class byte #4

Open
wants to merge 1 commit into
base: android-5.0.0_r3-scapi
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Jun 13, 2016

checkCommand() shall be called before class byte is updated with the
channel number. Otherwise, valid trasmit request can be filtered out
becaue of the channel number.

Say that the APDU filter "00 55 00 00" is available and the current
channel number is 1, for example. The APDU header is changed to "01 xx
xx xx" if the class byte is updated by Util.setChannelToClassByte(). In
this case, the transmit request is incorrectly rejected because of the
channel number if we do not apply this change.

checkCommand() shall be called before class byte is updated with the
channel number. Otherwise, valid trasmit request can be filtered out
becaue of the channel number.

Say that the APDU filter "00 55 00 00" is available and the current
channel number is 1, for example. The APDU header is changed to "01 xx
xx xx" if the class byte is updated by Util.setChannelToClassByte(). In
this case, the transmit request is incorrectly rejected because of the
channel number if we do not apply this change.
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

Successfully merging this pull request may close these issues.

0 participants