Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
NOTE: when I refer to "paperless" I always mean paperless-ngx, since that is the only relevant version of paperless today.
A "SMTP to Paperless API" proxy.
You configure your document scanner to send scans as emails via SMTP to this software with a recipient of <paperless-token>@<paperless-domain>
and the proxy will forward the attached scans to the Paperless API's document post endpoint of the chosen paperless instance.
The proxy is stateless, it simply looks at the recipient of the received message to determine where to post the document to. The paperless domain must be in a whitelist to be the target of the proxy (this is to stop anyone from abusing the proxy to send post requests to arbitrary domains, since there is no additional authentication happening).
The proxy must be hosted with TLS to avoid leaking the Paperless API tokens send in the recipient fields.
I wanted a document scanner that could scan directly to the Paperless API's document post endpoint, but apparently there is none (some Doxie scanner can allegedly do this, but as far as I know it is not officially supported). Since many scanners can send scans by email SMTP sounded like the next best thing. I didn't want to add a mailbox as a "man-in-the-middle" though (and use paperless' IMAP feature), since I would either have to self-host that or be fine with a third-party receiving all of my physical mail and other scans on top of my normal email. That seemed a bit unnecessary. So I built a simple "SMTP to Paperless API" proxy instead.
smtp2paperless --host <host> --port <port> --cert <cert-file> --key <key-file> --allowed_domains <paperless-domain>
Make it a systemd service or do whatever else you do to run your services.
Then configure your scanner to send mails via the SMTP proxy at your IP and chosen port. No authentication required.
Last,
add a recipient address in the format <paperless-token>@<paperless-domain>
to your scanners address book
and send a scan to that address.
It should now show up on your paperless instance.
FAQs
A bridge between SMTP and the Paperless API
We found that smtp2paperless demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.