Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Please take note of these important license terms, copied from "MIT-LICENSE.txt"
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
In particular, this software is not suitable for production use, may not be compliant with any version of monetico, it may not work, it may send money in the wrong direction or to the wrong place, in particular to untraceable offshore accounts, it may cause you to get fired, sued, bankrupt and/or divorced, and also lose your hair and/or custody of your children. By using this software you indemnify, defend, and hold harmless the authors, copyright holders, and financial institutions from liability and damages of any kind arising directly or indirectly from the use of this software.
By using this software you agree that you are using the software entirely at your own risk and peril, and that you have inspected the source code of the software and that you have satisfied yourself that the software does exactly what you expect it to do.
The author is not in any way connected to or affiliated with Monetico, Crédit Mutuel, CIC, or Euro-Information. No banking or financial institution has authorised, financed, approved, verified or condoned this software. All trademarks are registered trademarks of their respective owners.
================
You may prefer to use the development kit downloadable here: https://www.monetico-paiement.fr/fr/installer/telechargements.html
Add this line to your application's Gemfile:
gem 'monetico_payment'
And then execute:
$ bundle
Or install it yourself as:
$ gem install monetico_payment
params = request.request_parameters # or whatever you use to get POST params
mp = MoneticoPayment.new(secret_key)
valid = mp.validate(params) # true if MAC matches ; false otherwise
billing_info = { # make sure you have at least these keys, see docs for others
civility: "",
firstName: "",
lastName: "",
addressLine1: "",
city: "",
postalCode: "",
country: "",
email: "",
mobilePhone: ""
}
mp = MoneticoPayment.new(key: secret_key,
tpe: "1234567",
date: Time.now,
montant: "12.34",
currency: "EUR",
reference: "F-19/3475" # invoice number or whatever
url_retour_ok: "https://dom.example.com/pay/success",
url_retour_err: "https://dom.example.com/pay/failure",
lgue: "FR",
societe: "Ma Societe",
contexte_commande: { billing: billing_info },
texte_libre: "Ton argent est notre priorite",
mail: "client-name@son-domain.example.com" ) # mail: optional
# if you want to submit a form, use #hidden_inputs :
<form action="https://whatever-monetico-url-you-are-using/"><%= mp.hidden_inputs %></form>
# if you're showing monetico in an iframe, use #iframe_params :
<iframe src="https://whatever-monetico-url-you-are-using/?<%= mp.iframe_params %>"/>
After checking out the repo, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/conanite/monetico_payment. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the MoneticoPayment project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that monetico_payment 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.