
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@waiter/domain
Advanced tools
........................
: :
: WAITER :
: :
+--------------+ : +----------------+ :
| |--(A)------ Passport Request -------------->| | :
| End-user | : | Passport | :
| Local | : | Issue | :
| |<-(B)------ Passport -----------------------| Server | :
| | : | | :
| | : +----------------+ :
| | : :
| | ........................
| |
| | +-------------------------------+
| | | |
| | | Client |
| | | Frontend |
| | | Server |
| | | |
| | | |
| |--(C)------ Request -------------->| |
| | + passport | |
| | | |
| | | |
| | | |
| | | |
| | | |
+--------------+ +-------------------------------+
そこで、
jsonwebtoken
........................
: :
: WAITER :
: :
+--------------+ : +----------------+ :
| |--(A)------ Passport Request -------------->| | :
| End-user | + scope : | Passport | :
| Local | : | Issue | :
| |<-(B)------ Encoded Passport ---------------| Server | :
| | : | | :
| | : +--------■■------+ :
| | : ■■ :
| | : ■■ :
| | : SECRET :
| | :(environment variable):
| | : ■■ :
| | : ■■ :
| | +-----------------■■------------+
| | | : : |
| | | Client : |
| | | Frontend : |
| | | Server : |
| | | : : |
| | | : +----------------+ : |
| |--(C)------ Verify Request ---------------->| | : |
| | + encoded passport | : | Token | : |
| | | : | Verifier | : |
| |<-(D)------ Verify Result ------------------| | : |
| | | : | | : |
| | | : +----------------+ : |
| | | : : |
+--------------+ +-------------------------------+
: :
: :
........................
発行規則
| field | type | description |
|---|---|---|
| name | string | 規則名称 |
| description | string | 規則説明 |
| scope | string | スコープ |
| aggregationUnitInSeconds | number | 許可証数集計単位(秒) |
| threshold | number | 単位時間当たりの許可証数閾値 |
| unavailableHoursSpecifications | array | サービス休止時間帯設定リスト |
| unavailableHoursSpecifications.startDate | string | サービス休止開始日時 |
| unavailableHoursSpecifications.endDate | string | サービス休止終了日時 |
{
"name" : "transactionsAtMcdonalds",
"description" : "control the number of transactions at Mcdonalds.",
"scope" : "mcdonalds",
"aggregationUnitInSeconds" : 300,
"threshold": 120,
"unavailableHoursSpecifications":[
{"startDate":"2017-11-10T09:00:00Z","endDate":"2017-11-10T09:30:00Z"}
]
}
許可証発行単位
| field | type | description |
|---|---|---|
| identifier | string | 許可証発行単位識別子 |
| validFrom | number | いつから有効な発行単位か |
| validThrough | number | いつまで有効な発行単位か |
| numberOfRequests | number | 許可証発行リクエスト数 |
許可証
| field | type | description |
|---|---|---|
| iss | string | 発行者 |
| iat | number | 発行unixタイムスタンプ |
| exp | number | 期限unixタイムスタンプ |
| scope | string | スコープ |
| issueUnit | IIssueUnit | 発行単許可証発行単位位名 |
{
"scope": "scope",
"issueUnit": {
"identifier": "scope:1511059500",
"validFrom": 1511059500,
"validThrough": 1511059800,
"numberOfRequests": 1
},
"iat": 1511059610,
"exp": 1511059910,
"iss": "https://waiter.example.com"
}
暗号化された許可証
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzY29wZSI6InNjb3BlIiwiaXNzdWVVbml0Ijp7ImlkZW50aWZpZXIiOiJzY29wZToxNTExMDU5NTAwIiwidmFsaWRGcm9tIjoxNTExMDU5NTAwLCJ2YWxpZFRocm91Z2giOjE1MTEwNTk4MDAsIm51bWJlck9mUmVxdWVzdHMiOjF9LCJpYXQiOjE1MTEwNTk2MTAsImV4cCI6MTUxMTA1OTkxMCwiaXNzIjoiaHR0cHM6Ly93YWl0ZXIuZXhhbXBsZS5jb20ifQ.wE_osB77zotND2H56tUMyCFAaAS6SHlp4wCMyvRsVt4
| Name | Required | Value | Purpose |
|---|---|---|---|
DEBUG | false | waiter-domain:* | Debug |
WAITER_PASSPORT_ISSUER | true | 許可証発行者識別子 | |
WAITER_SECRET | true | 許可証暗号化の秘密鍵 |
コードサンプルは example にあります。
ISC
FAQs
Waiter Domain Library for Node.js
The npm package @waiter/domain receives a total of 15 weekly downloads. As such, @waiter/domain popularity was classified as not popular.
We found that @waiter/domain 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.