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.
A simple ruby gem providing photo fields to rails model
Add this line to your application's Gemfile:
gem 'photofy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install photofy
Add photo field(s) to model by adding lines like
photofy(:collage)
collage
: Getter,collage?
: Returns true if assignment is having value other than nil else false,collage =
: Setter. Acceptable inputs are file upload(ActionDispatch::Http::UploadedFile), file and String(format validation is ignored),collage_path
: File path of assignment,collage_s3publicpath
: Public aws s3 url provider if (aws s3 is used as storage)collage_persisted?
: Gives true if provided file/data is stored on disk,collage_store!
: To store provided file/data on disk,collage_destroy!
: To destroy stored file/data from disk
photofy(:collage_sec, {parent_photo_field: :collage})
Automatically creates a collage_sec photo field from :collage parent field
photofy(:stamp, {image_processor: Proc.new { |img| img.scale(25, 25) }})
Process image to scale(refer imagemagick/rmagick for other image manipulations) of 25x25px when image is saved.
after_photofy :collage, :post_card, Proc.new { |img| img.scale(450, 200) }
Creates 'post_card' photo field by taking source from 'collage' and scaling it to 450x200px.
FAQs
Unknown package
We found that photofy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.