
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
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 4 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.