Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
camera-cordova-plugin
Advanced tools
Plugin takes picture from native camera.
You shoud declare CustomCamera variable and call: CustomCamera.takePicture(success, failure, [title, subtitle, cancel, message, type])
type could be: PASSPORT, A4, LICENCE, NONE Returns absolute file path for stored image in successCallback. Image is stored in internal storage so no extra permissions needed.
In case of error, errorCallback is triggered with parameter describind whats happened. Errors could be: NO_PERMISSION - user did not grant camera permission CANCELLED - user closed the flow FILE_NOT_FOUND - problem with creating file for storing the result. Could be out of memory in internal storage. ERROR_ACCESSING_FILE - problem while writing file. Could be out of memory in internal storage. CAMERA_ERROR - any problem with camera initialisation. For instance, there is no camera on device.
In order to run test project, you need to add plugin and build the project. ⇒ cordova plugin add --link ../camera-cordova-plugin ⇒ ionic cordova emulate android
Plugin has 2 dependencies, please keep attention on version of support library. You can update it if needed: 'com.android.support:appcompat-v7:27.1.1' 'com.otaliastudios:cameraview:1.5.1'
FAQs
Custom camera for taking photos of documents
The npm package camera-cordova-plugin receives a total of 1 weekly downloads. As such, camera-cordova-plugin popularity was classified as not popular.
We found that camera-cordova-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.