Git Product home page Git Product logo

owasp / igoat-swift Goto Github PK

View Code? Open in Web Editor NEW
392.0 18.0 160.0 194.3 MB

OWASP iGoat (Swift) - A Damn Vulnerable Swift Application for iOS

Home Page: https://igoatapp.com/

License: GNU General Public License v3.0

Swift 28.46% HTML 2.36% Objective-C 0.10% Shell 0.23% Ruby 2.34% C 64.92% Dockerfile 0.09% PHP 1.42% Hack 0.10%
ios-security runtime-security insecure-data-storage ipa owasp-igoat owasp-top-10 ios-swift

igoat-swift's People

Contributors

championofblocks avatar masbog avatar swaroopgithub avatar swaroopsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

igoat-swift's Issues

UI Issue

UI is not aligned properly for iDevices.
ui_issue

Error: 'UIApplication' has no member 'statusBarUIView'

Try cloning this repo and trying to run the project.
This is my environment:

  • Xcode 14.2
  • MacBook with M1 Pro.
  • Swift 5.7.2

I am getting this error on this line SideMenuController.swift | L.424.

return UIApplication.shared.statusBarUIView as? UIWindow

I found tricky ways to solve this issue to replace those codes this code:

        let s = "status"
        let b = "Bar"
        let w = "Window"
        return UIApplication.shared.value(forKey: s+b+w) as? UIWindow

Code obtained from teodorpatras/SideMenuController.

Also, don't forget to add arm64 in excluded architecture in the build settings for Apple Silicon users.

How do i run iGoat ?

I just installed iGoat from repo, but the app doesn't appear on my phone
how do i run it ?

img_0069

Side bar navigation crashes on iOS 13

Looks like the 3rd party library used for the side bar navigation is using deprecated APIs. Building and running the app on iOS 13 causes the following crash when pressing the side bar menu icon:

*** Assertion failure in -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore_Sim/UIKit-3901.4.2/UIApplication.m:5330
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called -statusBar or -statusBarWindow on UIApplication: this code must be changed as there's no longer a status bar or status bar window. Use the statusBarManager object on the window scene instead.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff23c70ff8 +[NSException raise:format:arguments:] + 88
	3   Foundation                          0x00007fff256e9b51 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
	4   UIKitCore                           0x00007fff4809421c -[UIApplication _createStatusBarWithRequestedStyle:orientation:hidden:] + 255
	5   UIKitCore                           0x00007fff480946ed -[UIApplication statusBarWindow] + 24
	6   Foundation                          0x00007fff25712bba -[NSObject(NSKeyValueCoding) valueForKey:] + 317
	7   iGoat-Swift                         0x00000001072c1c4a $s11iGoat_Swift18SideMenuControllerC3sbw33_CA8FFE2A6256EED9B4DC5F1CD153A4DDLLSo8UIWindowCSgvg + 458
	8   iGoat-Swift                         0x00000001072bf378 $s11iGoat_Swift18SideMenuControllerC3set15statusBarHidden8animatedySb_SbtF + 280
	9   iGoat-Swift                         0x00000001072c0446 $s11iGoat_Swift18SideMenuControllerC7animate8toRevealySb_tF + 230
	10  iGoat-Swift                         0x00000001072b5e51 $s11iGoat_Swift18SideMenuControllerC6toggleyyF + 609
	11  iGoat-Swift                         0x00000001072b5e8b $s11iGoat_Swift18SideMenuControllerC6toggleyyFTo + 43
	12  UIKitCore                           0x00007fff48093fff -[UIApplication sendAction:to:from:forEvent:] + 83
	13  UIKitCore                           0x00007fff47a6c00e -[UIControl sendAction:to:forEvent:] + 223
	14  UIKitCore                           0x00007fff47a6c358 -[UIControl _sendActionsForEvents:withEvent:] + 398
	15  UIKitCore                           0x00007fff47a6b2b7 -[UIControl touchesEnded:withEvent:] + 481
	16  UIKitCore                           0x00007fff480cebbf -[UIWindow _sendTouchesForEvent:] + 2604
	17  UIKitCore                           0x00007fff480d04c6 -[UIWindow sendEvent:] + 4596
	18  UIKitCore                           0x00007fff480ab53b -[UIApplication sendEvent:] + 356
	19  UIKit                               0x000000010aa75bd4 -[UIApplicationAccessibility sendEvent:] + 85
	20  UIKitCore                           0x00007fff4812c71a __dispatchPreprocessedEventFromEventQueue + 6847
	21  UIKitCore                           0x00007fff4812f1e0 __handleEventQueueInternal + 5980
	22  CoreFoundation                      0x00007fff23bd4471 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	23  CoreFoundation                      0x00007fff23bd439c __CFRunLoopDoSource0 + 76
	24  CoreFoundation                      0x00007fff23bd3bcc __CFRunLoopDoSources0 + 268
	25  CoreFoundation                      0x00007fff23bce87f __CFRunLoopRun + 1263
	26  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
	27  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
	28  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
	29  iGoat-Swift                         0x00000001072ca478 main + 72
	30  libdyld.dylib                       0x00007fff5227ec25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Expression resolves to unused function

CloudMisconfigurationExerciseVC has a compiler error in its UIViewController extension:

extension UIViewController {
    @IBAction func textFieldReturn(sender: UITextField) {
        sender.resignFirstResponder
    }
}

resignFirstResponder should be a function call: sender.resignFirstResponder()

no such module 'Realm'

ive opened the xcode project and attempt to build but in the insecure data storage -- Realm -- RealmExerciseVC, i get 'no such module 'realm' . ive run pod install and made sure cocoapods is up to date, deleted the derived data directory and cleaned the build. still getting the error. not sure what else to do.

iGoat-Swift igoat_server.rb not working.

Error:

$ ./igoat_server.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin19/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/opt in PATH, mode 04077
Traceback (most recent call last):
2: from ./igoat_server.rb:57:in <main>' 1: from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
/Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- sinatra/base (LoadError)

System Config:
Mac os: Cataline 10.15.6
Ruby Version: ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.