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.
Adds String#valid_date? and String#valid_time? methods to add utility to the Rails String#to_date and String#to_time methods. Determines whether the string contains a valid date or time, to check before converting to a date and avoiding an exception.
Examples:
"2008-01-01".valid_date? #=> true
"20080101".valid_date? #=> true
"0000-00-00".valid_date? #=> false
"".valid_date? #=> nil
"2008-01-01".valid_time? #=> true
"20080101".valid_time? #=> true
"2008-01-01 12:00".valid_time #=> true
"2008-01-01 52:99".valid_time #=> false
"0000-00-00".valid_time? #=> false
"".valid_time? #=> nil
This gem is released under a broad open-source license. See LICENSE for more details.
FAQs
Unknown package
We found that valid-date 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.