Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@otwdesign/plugin-storage

Latest version: v1.1.2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: otw-tahir, otwdesigns
0 Stars
0 Forks
5 Versions
881 Downloads
TypeScript Repo language

Scan summary

@otwdesign/plugin-storage was last scanned on 30 Nov 2026 at version 1.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published within 7 days (24–30 Nov 2026).
  • Findings: No rules fired in version 1.1.2.
  • Downloads: 881 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.2 LATEST 30 Nov 2026 No rules fired
1.1.0 24 Nov 2026 No rules fired
1.0.1 24 Nov 2026 No rules fired
1.0.0 24 Nov 2026 Not shown
0.0.0-stage 24 Nov 2026 Not shown

No rules fired in 1.1.2

Findings

Findings for v1.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Storage for OTW CMS

Keeps the media library's files in object storage, for sites whose host has no disk to keep them on, such as Vercel. Large files go from the browser straight to the storage, so a host's limit on a request's size (Vercel: 4.5 MB) doesn't cap uploads.

  • S3 and what speaks its protocol: Amazon S3, Cloudflare R2, Supabase Storage, and a server of your own running MinIO, Garage or rclone serve s3. Over plain fetch, with no SDK.
  • Vercel Blob, through its own SDK, which is loaded only when that store is used.
  • Another driver, added by a small plugin of your own to the storage.drivers registry.

Needs OTW CMS 1.9 or later.

Install

npx cms plugin add @otwdesign/plugin-storage

Then, in the admin:

  1. Storage › Settings: choose the service and fill in its bucket. Its keys go in the site's environment (below), never in the database.
  2. Storage › Status › Test the Connection: stores a small file of its own, reads it back, checks a second one can't replace it and that browsers may send files, then deletes it.
  3. If the site already has uploads on its disk: Tools › Copy Files to Storage.
  4. Storage › Settings › Keep uploads in this storage: from then on, uploads go to the bucket.

Until step 4 the plugin changes nothing: uploads stay on the disk, on the paths they always took.

Services

Service What to enter Never writing over a file
Amazon S3 bucket, region the service refuses (If-None-Match)
Cloudflare R2 bucket, account ID the service refuses
Supabase Storage bucket, project reference, region looked for first, under a lock
Another bucket, region, address, path or host style your choice; looking first is the safe default
Vercel Blob public or private, as the store was made the store refuses

Two uploads of photo.jpg must become photo.jpg and photo-1.jpg, never one file. Where a service doesn't refuse a second write itself, the plugin looks first, after claiming the name in the site's database so two servers can't both find it free. The claim is a row, not a lock: no database connection is held while a file is sent. The connection test says whether a service refuses.

The keys may need

For S3: s3:PutObject, s3:GetObject, s3:DeleteObject on the bucket's objects, and s3:ListBucket on the bucket, without which a missing file looks forbidden (403) instead of missing (404).

Give the keys this bucket only, and this folder only if the bucket is shared (arn:aws:s3:::bucket/folder/*). Whoever may change Storage's settings chooses the bucket and folder the keys are used on, and the site serves /uploads/<path> for any file under that folder, in the library or not. So use a bucket of its own, or a Folder, and never one that also holds backups or private files.

Uploads from the browser (CORS)

For files of 4 MB or more the browser sends the bytes to the bucket itself, at an address the site signs for that one file, for fifteen minutes. The bucket must allow the site's pages:

[
  {
    "AllowedOrigins": ["https://www.example.com"],
    "AllowedMethods": ["PUT"],
    "AllowedHeaders": ["content-type"],
    "MaxAgeSeconds": 3600
  }
]

The file waits under _uploads/ as plain bytes (application/octet-stream), which the site never serves. The site then reads it back, checks its type from its bytes, makes an image's sizes, stores it under its own name and deletes the one that waited. A waiting file that's never finished, given up or refused is deleted when its upload runs out, an hour to a day later.

Two things to set on the bucket itself:

  • A lifecycle rule that expires _uploads/ after a day: the net under anything that arrives after the site stopped looking.
  • On a public bucket, no public read of _uploads/: until it's stored or swept, a waiting file sits at the bucket's own address, unchecked. It can only be downloaded, never shown as a page, and only the person uploading knows its address; a policy that denies public GetObject on <folder>/_uploads/* closes it.

Without CORS rules, set Uploads from the browser to "Every file goes through the site": uploads then work up to the host's limit on a request.

Serving files

With a public address (a CDN's, a custom domain's, pub-….r2.dev), files are linked there directly. Without one the bucket can stay private: the site serves /uploads/… from it, with ranges, at the cost of a request to the bucket per file. Links to /uploads/… saved in content keep working either way.

Space used

Storage › Status says how much the media library holds: the size of every upload and every image size made from one, from the CMS's own records, with no request to the bucket. Set Storage limit, in GB to your plan's quota and it shows the share used, warns from 90% and says when it's passed. It never stops an upload: your provider enforces its own limit.

It counts this site's library, not the bucket: not files the library doesn't know (another site's, or an upload still waiting), and not the untouched originals the CMS keeps of images over 2560 pixels, which it says when there are any. Object storage has no "free space" to ask for; a plan's real quota is in the provider's own console.

A server of your own, or a PC

Run something that speaks S3 on it (MinIO, Garage, or rclone serve s3 over a folder), choose "Another, or a server of your own", and enter its address. An address on the server's own network (localhost, 10.…, 192.168.…) is refused unless the site's environment has STORAGE_ALLOW_PRIVATE_ENDPOINT=1: a setting typed in the admin must not be able to make the site talk to services inside its network. A cloud's metadata address is refused always. Use https outside a private network; the Status screen says when an address is plain http. It must be reachable from the site, and from browsers too for uploads over the host's limit, and it must stay on: when it's off, the site's images are too. A PC that sleeps is better as a copy of a bucket (rclone sync) than as the storage.

Environment variables

Variable For
STORAGE_S3_ACCESS_KEY_ID The bucket's access key ID. Required for S3.
STORAGE_S3_SECRET_ACCESS_KEY Its secret. Required for S3.
BLOB_READ_WRITE_TOKEN Vercel Blob's token; Vercel sets it when a store is connected.
BLOB_STORE_ID The Blob store's id, with Vercel's OIDC sign-in instead of a token.
VERCEL_OIDC_TOKEN Set by Vercel; with BLOB_STORE_ID, signs in to Blob without a token.
STORAGE_ALLOW_PRIVATE_ENDPOINT 1 to let the storage's address be on the server's own network.
STORAGE_ACTIVE true or false: overrides "Keep uploads in this storage".
STORAGE_DRIVER s3, vercel-blob or plugin: overrides the choice.
STORAGE_S3_SERVICE, STORAGE_S3_BUCKET, STORAGE_S3_REGION, STORAGE_S3_ACCOUNT, STORAGE_S3_ENDPOINT, STORAGE_S3_PATH_STYLE Override the bucket's settings. Set, they can't be changed from the admin.
STORAGE_PUBLIC_URL Overrides the public address.
STORAGE_PREFIX Overrides the folder inside the bucket.

A setting with its variable set shows read-only in the admin. The two keys and the token are read from the environment only.

For other plugins

// A driver of your own: it appears when Settings › Storage says "A driver another plugin adds".
cms.registries.get('storage.drivers').add({
  id: 'attic',
  label: 'The attic',
  directUploads: false,
  problem: () => null, // or what's missing, in a sentence
  publicUrl: (key) => null, // or the file's address
  connect: async () => ({ create, read, stat, delete: remove }),
})

cms.services.get('storage').status() // { active, driver, problem }
await cms.services.get('storage').usage() // { items, files, bytes, limitBytes, … }

create() must never write over a file: it answers false when the key is taken.

Limits

  • A file sent straight to storage is read into memory once to be checked and stored, so the practical ceiling is the server's memory. Fine at the CMS's default 64 MB.
  • Switching is one way. Turned off again, files uploaded to the bucket since stay there, and the site looks for them on the disk.
  • Copying runs where the files are. Run it on the old server (or locally, against the site's database) before moving to a host without a disk.
  • Vercel Blob can't set whether a file shows or downloads; S3 services get that from its type. From a bucket's own address only pictures, audio, video, PDFs and plain text show in the browser; anything that could carry a script downloads.
  • An address is checked by its name. A host name that resolves to a private address isn't caught: keep storage.manage to people you'd trust with that.

What it costs a site

Measured on sites built from npm with OTW CMS 1.12, once without the plugin and once with it:

Where Without the plugin With it The difference
Browser files of the build 1,069,249 B 1,069,249 B None: the same files
A site page (HTML) 11,579 B 11,579 B None
The sign-in page (HTML) 16,466 B 16,466 B None
Another admin screen (HTML) 35,100 B 36,158 B The menu, 0.2 KB compressed
Time per request 3.8 to 6.0 ms 3.8 to 6.1 ms Within 0.1 ms: not measurable
Code loaded when the server starts 20 KB The settings and their checks
The server's memory at start 42.3 MB 42.6 MB 0.3 MB

The same switched on or off. The S3 client and its signing (6 KB) load with the first file the site stores or serves itself, so a site whose bucket has a public address loads them with the first upload. The admin's screens, the count of the space used and the copy (11 KB) load when one of the plugin's screens is first opened; the connection test with its first run; Vercel Blob's driver only on a site that chose it, and its SDK (1.8 MB) with that site's first file.

Deleting its data

Plugins › Storage › Delete Data drops its two tables (storage_copy_runs, storage_claims). Files in the bucket are not touched.

Developing

pnpm install          # the CMS is linked from ../nextjs-cms
pnpm test:all         # lint, types, unit tests, and browser tests against a production build

The unit and browser tests run against site/e2e/fake-s3.mjs, a stand-in for S3 that checks every request's signature (ports 3500 and 3501 for the browser tests). The signer itself is held to Amazon's own (@smithy/signature-v4) in test/sigv4.test.ts.

License

Apache-2.0

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @otwdesign/plugin-storage

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229