Skip to content

Commit

Permalink
Merge pull request #34 from alexanderjordanbaker/AddXcodeLocalTesting
Browse files Browse the repository at this point in the history
Add support for Xcode and LocalTesting environments
  • Loading branch information
alexanderjordanbaker authored Nov 13, 2023
2 parents 87f579a + 4e2d707 commit c5c00b1
Show file tree
Hide file tree
Showing 39 changed files with 547 additions and 62 deletions.
51 changes: 31 additions & 20 deletions jwt_verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ export class SignedDataVerifier {
* @throws VerificationException Thrown if the data could not be verified
*/
async verifyAndDecodeRenewalInfo(signedRenewalInfo: string): Promise<JWSRenewalInfoDecodedPayload> {
return this.verifyJWT(signedRenewalInfo, this.JWSRenewalInfoDecodedPayloadValidator, this.extractSignedDate);
const decodedRenewalInfo: JWSRenewalInfoDecodedPayload = await this.verifyJWT(signedRenewalInfo, this.JWSRenewalInfoDecodedPayloadValidator, this.extractSignedDate);
const environment = decodedRenewalInfo.environment
if (this.environment !== environment) {
throw new VerificationException(VerificationStatus.INVALID_ENVIRONMENT)
}
return decodedRenewalInfo
}

/**
Expand All @@ -100,7 +105,7 @@ export class SignedDataVerifier {
const appAppleId = decodedJWT.data ? decodedJWT.data.appAppleId : (decodedJWT.summary ? decodedJWT.summary.appAppleId : null)
const bundleId = decodedJWT.data ? decodedJWT.data.bundleId : (decodedJWT.summary ? decodedJWT.summary.bundleId : null)
const environment = decodedJWT.data ? decodedJWT.data.environment : (decodedJWT.summary ? decodedJWT.summary.environment : null)
if (this.bundleId !== bundleId || (this.environment === "Production" && this.appAppleId !== appAppleId)) {
if (this.bundleId !== bundleId || (this.environment === Environment.PRODUCTION && this.appAppleId !== appAppleId)) {
throw new VerificationException(VerificationStatus.INVALID_APP_IDENTIFIER)
}
if (this.environment !== environment) {
Expand All @@ -118,7 +123,7 @@ export class SignedDataVerifier {
async verifyAndDecodeAppTransaction(signedAppTransaction: string): Promise<AppTransaction> {
const decodedAppTransaction: AppTransaction = await this.verifyJWT(signedAppTransaction, this.appTransactionValidator, t => t.receiptCreationDate === undefined ? new Date() : new Date(t.receiptCreationDate));
const environment = decodedAppTransaction.receiptType
if (this.bundleId !== decodedAppTransaction.bundleId || (this.environment === "Production" && this.appAppleId !== decodedAppTransaction.appAppleId)) {
if (this.bundleId !== decodedAppTransaction.bundleId || (this.environment === Environment.PRODUCTION && this.appAppleId !== decodedAppTransaction.appAppleId)) {
throw new VerificationException(VerificationStatus.INVALID_APP_IDENTIFIER)
}
if (this.environment !== environment) {
Expand All @@ -129,27 +134,33 @@ export class SignedDataVerifier {

protected async verifyJWT<T>(jwt: string, validator: Validator<T>, signedDateExtractor: (decodedJWT: T) => Date): Promise<T> {
let certificateChain;
let decodedJWT
try {
const header = jwt.split('.')[0]
const decodedHeader = base64url.decode(header)
const headerObj = JSON.parse(decodedHeader)
const chain: string[] = headerObj['x5c'] ?? []
if (chain.length != 3) {
throw new VerificationException(VerificationStatus.INVALID_CHAIN_LENGTH)
}
certificateChain = chain.slice(0, 2).map(cert => new X509Certificate(Buffer.from(cert, 'base64')))
} catch (error) {
if (error instanceof Error) {
throw new VerificationException(VerificationStatus.INVALID_CERTIFICATE, error)
}
throw new VerificationException(VerificationStatus.INVALID_CERTIFICATE)
}
try {
const decodedJWT = jsonwebtoken.decode(jwt)
decodedJWT = jsonwebtoken.decode(jwt)
if (!validator.validate(decodedJWT)) {
throw new VerificationException(VerificationStatus.FAILURE)
}
const effectiveDate = this.enableOnlineChecks ? new Date() : signedDateExtractor(decodedJWT)
if (this.environment === Environment.XCODE || this.environment === Environment.LOCAL_TESTING) {
// Data is not signed by the App Store, and verification should be skipped
// The environment MUST be checked in the public method calling this
return decodedJWT
}
try {
const header = jwt.split('.')[0]
const decodedHeader = base64url.decode(header)
const headerObj = JSON.parse(decodedHeader)
const chain: string[] = headerObj['x5c'] ?? []
if (chain.length != 3) {
throw new VerificationException(VerificationStatus.INVALID_CHAIN_LENGTH)
}
certificateChain = chain.slice(0, 2).map(cert => new X509Certificate(Buffer.from(cert, 'base64')))
} catch (error) {
if (error instanceof Error) {
throw new VerificationException(VerificationStatus.INVALID_CERTIFICATE, error)
}
throw new VerificationException(VerificationStatus.INVALID_CERTIFICATE)
}
const effectiveDate = this.enableOnlineChecks ? new Date() : signedDateExtractor(decodedJWT)
const publicKey = await this.verifyCertificateChain(this.rootCertificates, certificateChain[0], certificateChain[1], effectiveDate);
const encodedKey = publicKey.export({
type: "spki",
Expand Down
2 changes: 2 additions & 0 deletions models/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { Validator } from "./Validator";
export enum Environment {
SANDBOX = "Sandbox",
PRODUCTION = "Production",
XCODE = "Xcode",
LOCAL_TESTING = "LocalTesting",
}

export class EnvironmentValidator implements Validator<Environment> {
Expand Down
63 changes: 47 additions & 16 deletions receipt_utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,57 @@ export class ReceiptUtility {
* @returns A transaction id from the array of in-app purchases, null if the receipt contains no in-app purchases
*/
extractTransactionIdFromAppReceipt(appReceipt: string): string | null {
const receiptInfo = ASN1HEX.getVbyList(Buffer.from(appReceipt, 'base64').toString('hex'), 0, [1, 0, 2, 1, 0]) as string
let index = 0;
while(ASN1HEX.getVbyList(receiptInfo, 0, [index, 0])) {
const val = ASN1HEX.getVbyList(receiptInfo, 0, [index, 0]) as string
if (IN_APP_TYPE_ID === parseInt(val, 16)) {
const inAppInfo = ASN1HEX.getVbyList(receiptInfo, 0, [index, 2]) as string
let inAppIndex = 0;
while(ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 0])) {
const val = ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 0]) as string
if (TRANSACTION_IDENTIFIER_TYPE_ID === parseInt(val, 16) || ORIGINAL_TRANSACTION_IDENTIFIER_TYPE_ID === parseInt(val, 16)) {
const transactionIdUTF8String = ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 2]) as string
const transactionId = ASN1HEX.getVbyList(transactionIdUTF8String, 0, []) as string
return Buffer.from(transactionId, 'hex').toString()
// Xcode receipts use indefinite length encoding, not supported by all parsers
// Indefinite length encoding is only entered, but never left during parsing for receipts
// We therefore round up indefinite length encoding to be the remaining length
const prevGetVblenFunction = ASN1HEX.getVblen
ASN1HEX.getVblen = function(s, idx) {
const c = ASN1HEX.getL(s, idx)
const oldResult = prevGetVblenFunction(s, idx)
// Round up to the remaining length in the string, measured in bytes (2 hex values per byte)
if (oldResult === 0 && c === '80') {
return (s.length - idx) / 2
}
return oldResult
}
const prevGetLblen = ASN1HEX.getLblen
ASN1HEX.getLblen = function(s, idx) {
const oldResult = prevGetLblen(s, idx)
// The length for the length byte for 80 00 is 1
if (oldResult == -1) {
return 1
}
return oldResult
}
try {
let receiptInfo = ASN1HEX.getVbyList(Buffer.from(appReceipt, 'base64').toString('hex'), 0, [1, 0, 2, 1, 0]) as string
if (receiptInfo.length > 2 && receiptInfo.startsWith('04')) {
// We are still in an Octet String, Xcode wraps with an extra Octet, decode it here
receiptInfo = ASN1HEX.getV(receiptInfo, 0)
}
let index = 0;
while(ASN1HEX.getVbyList(receiptInfo, 0, [index, 0])) {
const val = ASN1HEX.getVbyList(receiptInfo, 0, [index, 0]) as string
if (IN_APP_TYPE_ID === parseInt(val, 16)) {
const inAppInfo = ASN1HEX.getVbyList(receiptInfo, 0, [index, 2]) as string
let inAppIndex = 0;
while(ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 0])) {
const val = ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 0]) as string
if (TRANSACTION_IDENTIFIER_TYPE_ID === parseInt(val, 16) || ORIGINAL_TRANSACTION_IDENTIFIER_TYPE_ID === parseInt(val, 16)) {
const transactionIdUTF8String = ASN1HEX.getVbyList(inAppInfo, 0, [inAppIndex, 2]) as string
const transactionId = ASN1HEX.getVbyList(transactionIdUTF8String, 0, []) as string
return Buffer.from(transactionId, 'hex').toString()
}
inAppIndex = inAppIndex + 1
}
inAppIndex = inAppIndex + 1
}
index = index + 1
}
index = index + 1
return null
} finally {
ASN1HEX.getLblen = prevGetLblen
ASN1HEX.getVblen = prevGetVblenFunction
}
return null
}

/**
Expand Down
Binary file added tests/resources/certs/testCA.der
Binary file not shown.
5 changes: 5 additions & 0 deletions tests/resources/certs/testSigningKey.p8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgSpP55ELdXswj9JRZ
APRwtTfS4CNRqpKIs+28rNHiPAqhRANCAASs8nLES7b+goKslppNVOurf0MonZdw
3pb6TxS8Z/5j+UNY1sWK1ChxpuwNS9I3R50cfdQo/lA9PPhw6XIg8ytd
-----END PRIVATE KEY-----
1 change: 1 addition & 0 deletions tests/resources/mock_signed_data/legacyTransaction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ewoicHVyY2hhc2UtaW5mbyIgPSAiZXdvaWRISmhibk5oWTNScGIyNHRhV1FpSUQwZ0lqTXpPVGt6TXprNUlqc0tmUW89IjsKfQo=
1 change: 1 addition & 0 deletions tests/resources/mock_signed_data/missingX5CHeaderClaim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiIsIng1Y3dyb25nIjpbIk1JSUJvRENDQVVhZ0F3SUJBZ0lCRERBS0JnZ3Foa2pPUFFRREF6QkZNUXN3Q1FZRFZRUUdFd0pWVXpFTE1Ba0dBMVVFQ0F3Q1EwRXhFakFRQmdOVkJBY01DVU4xY0dWeWRHbHViekVWTUJNR0ExVUVDZ3dNU1c1MFpYSnRaV1JwWVhSbE1CNFhEVEl6TURFd05USXhNekV6TkZvWERUTXpNREV3TVRJeE16RXpORm93UFRFTE1Ba0dBMVVFQmhNQ1ZWTXhDekFKQmdOVkJBZ01Ba05CTVJJd0VBWURWUVFIREFsRGRYQmxjblJwYm04eERUQUxCZ05WQkFvTUJFeGxZV1l3V1RBVEJnY3Foa2p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DQVFZd0NnWUlLb1pJemowRUF3TURSd0F3UkFJZ2VtV1FYbk1BZFRhZDJKREpXbmc5VTR1QkJMNW1BN1dJMDVIN29IN2M2aVFDSUhpUnFNak5melVBeWl1OWg2ck9VL0sraVRSMEkvM1kvTlNXc1hIWCthY2MiXSwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJlbnZpcm9ubWVudCI6IlNhbmRib3giLCJzaWduZWREYXRlIjoxNjcyOTU2MTU0MDAwfQ.FbK2OL-t6l4892W7fzWyus_g9mIl2CzWLbVt7Kgcnt6zzVulF8bzovgpe0v_y490blROGixy8KDoe2dSU53-Xw
1 change: 1 addition & 0 deletions tests/resources/mock_signed_data/testNotification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJ4NWMiOlsiTUlJQm9EQ0NBVWFnQXdJQkFnSUJDekFLQmdncWhrak9QUVFEQWpCTk1Rc3dDUVlEVlFRR0V3SlZVekVUTUJFR0ExVUVDQXdLUTJGc2FXWnZjbTVwWVRFU01CQUdBMVVFQnd3SlEzVndaWEowYVc1dk1SVXdFd1lEVlFRS0RBeEpiblJsY20xbFpHbGhkR1V3SGhjTk1qTXdNVEEwTVRZek56TXhXaGNOTXpJeE1qTXhNVFl6TnpNeFdqQkZNUXN3Q1FZRFZRUUdFd0pWVXpFVE1CRUdBMVVFQ0F3S1EyRnNhV1p2Y201cFlURVNNQkFHQTFVRUJ3d0pRM1Z3WlhKMGFXNXZNUTB3Q3dZRFZRUUtEQVJNWldGbU1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTRyV0J4R21GYm5QSVBRSTB6c0JLekx4c2o4cEQydnFicjB5UElTVXgyV1F5eG1yTnFsOWZoSzhZRUV5WUZWNysrcDVpNFlVU1Ivbzl1UUlnQ1BJaHJLTWZNQjB3Q1FZRFZSMFRCQUl3QURBUUJnb3Foa2lHOTJOa0Jnc0JCQUlUQURBS0JnZ3Foa2pPUFFRREFnTklBREJGQWlFQWtp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EUyTWpBek1sb3dOakVMTUFrR0ExVUVCaE1DVlZNeEV6QVJCZ05WQkFnTUNrTmhiR2xtYjNKdWFXRXhFakFRQmdOVkJBY01DVU4xY0dWeWRHbHViekJaTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEEwSUFCSFB2d1pmb0tMS2FPclgvV2U0cU9iWFNuYTVUZFdIVlo2aElSQTF3MG9jM1FDVDBJbzJwbHlEQjMvTVZsazJ0YzRLR0U4VGlxVzdpYlE2WmM5VjY0azB3Q2dZSUtvWkl6ajBFQXdNRFNBQXdSUUloQU1USGhXdGJBUU4waFN4SVhjUDRDS3JEQ0gvZ3N4V3B4NmpUWkxUZVorRlBBaUIzNW53azVxMHpjSXBlZnZZSjBNVS95R0dIU1dlejBicTBwRFlVTy9ubUR3PT0iXSwidHlwIjoiSldUIiwiYWxnIjoiRVMyNTYifQ.eyJkYXRhIjp7ImFwcEFwcGxlSWQiOjEyMzQsImVudmlyb25tZW50IjoiU2FuZGJveCIsImJ1bmRsZUlkIjoiY29tLmV4YW1wbGUifSwibm90aWZpY2F0aW9uVVVJRCI6IjlhZDU2YmQyLTBiYzYtNDJlMC1hZjI0LWZkOTk2ZDg3YTFlNiIsInNpZ25lZERhdGUiOjE2ODEzMTQzMjQwMDAsIm5vdGlmaWNhdGlvblR5cGUiOiJURVNUIn0.VVXYwuNm2Y3XsOUva-BozqatRCsDuykA7xIe_CCRw6aIAAxJ1nb2sw871jfZ6dcgNhUuhoZ93hfbc1v_5zB7Og
1 change: 1 addition & 0 deletions tests/resources/mock_signed_data/transactionInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJ4NWMiOlsiTUlJQm9EQ0NBVWFnQXdJQkFnSUJDekFLQmdncWhrak9QUVFEQWpCTk1Rc3dDUVlEVlFRR0V3SlZVekVUTUJFR0ExVUVDQXdLUTJGc2FXWnZjbTVwWVRFU01CQUdBMVVFQnd3SlEzVndaWEowYVc1dk1SVXdFd1lEVlFRS0RBeE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