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

Not Working In IOS #28

Closed
codehack26 opened this issue May 9, 2024 · 13 comments · Fixed by #29 or #31
Closed

Not Working In IOS #28

codehack26 opened this issue May 9, 2024 · 13 comments · Fixed by #29 or #31
Assignees
Labels
bug Something isn't working

Comments

@codehack26
Copy link

Describe the bug
A clear and concise description of what the bug is.
App crashes with an exception in TalsecPlugin

To Reproduce
If applicable, steps to reproduce the behavior.
Step 1: Installed the cordova plugin add cordova-plugin-add-swift-support --save
Step 2: Installed the cordova plugin add cordova-talsec-plugin-freerasp
Step 3: Configuration Code added in JS file
Step 4: Run the Real device with simulator

Expected behavior
A clear and concise description of what you expected to happen.
App should not crash & detect type of Security Threat

Screenshots
If applicable, add screenshots to help explain your problem.

Screenshot 2024-05-09 at 12 40 03 PM

Please complete the following information:

  • Device: Iphone 13 pro max
  • OS version: 17.4.1
  • Version of freeRASP: 6.1.1

Additional context
Add any other context about the problem here.

@codehack26 codehack26 added the bug Something isn't working label May 9, 2024
@tompsota
Copy link
Member

tompsota commented May 9, 2024

Hi @codehack26,

did this happen on fresh install of freeRASP, or are you updating from a previous version?

Best,
Tomas from Talsec

@codehack26
Copy link
Author

codehack26 commented May 9, 2024

Hi @tompsota Thanks for the quick response.

Its an fresh installation. We have tried on standalone project (Blank project) as well as on our project. Issue is still same for both the projects

We are using Xcode 15.3

@codehack26
Copy link
Author

@tompsota Were you able to reproduce the issues.?

@tompsota
Copy link
Member

Hi @codehack26,

No, I wasn't able to reproduce.

What version of 'cordova-ios' and 'cordova-plugin-add-swift-support' are you using?

Additionally, in the following gist is index.js of a demo app I used for testing. It should start freeRASP and log any detected incidents. https://gist.github.com/tompsota/f2a9e70ac6497cdb0ffe10dced16c80b . Can you try it on the blank project to see if the issue is still there?

@codehack26
Copy link
Author

@tompsota Please find the details
cordova-ios: 6.3.0
cordova-plugin-add-swift-support : 2.0.2

Can you try it on the blank project to see if the issue is still there?
Same error in blank project. Seems like some issue with plugin

@tompsota
Copy link
Member

Hello @codehack26,

I was finally able to reproduce the bug. It is caused by cordova-ios plugin. More specifically, just by some versions of it. I'll try to fix it.

However, newer versions of the ios plugin do not throw the error, so maybe consider to bump the cordova-ios. I'm not sure what is the least version that fixes the problem, but I can say that with "cordova-ios": "^7.1.0", the project builds successfully.

Cheers,

Tomas from Talsec

@codehack26
Copy link
Author

@tompsota Thanks for the update. Awaiting for the fix for lower version of cordova-ios

@tompsota tompsota mentioned this issue May 16, 2024
11 tasks
@tompsota
Copy link
Member

Issue should be resolved in v6.1.2

@codehack26, please try to update the freerasp plugin

Best,
Tomas from Talsec

@codehack26
Copy link
Author

@tompsota Appreciate your quick response. We will let you know if we face any issue.

@codehack26
Copy link
Author

codehack26 commented May 16, 2024

@codehack26 Still we are facing same issue. Screenshot attached for your reference. We have update the TalsecPlugin.swift manually as of now. I have not see any other change with the latest commit apart from TalsecPlugin.swift
image

@tompsota
Copy link
Member

@codehack26 Allright. Let's try different approach.

Can you try to replace the SecurityThreat extension with following code?

https://gist.github.com/tompsota/737ffb2a8599641644f4fd72de38af64

Let me know if this helped, and I'll create a new release then.

@tompsota tompsota reopened this May 16, 2024
@codehack26
Copy link
Author

@tompsota Error is resolved. App is not crashing now. Exploring the configuration(debug, jailbreak etc) available on IOS

@tompsota
Copy link
Member

Issue is resolved in v6.1.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants