Skip to content

Commit ed780dd

Browse files
authored
Merge pull request #22 from encryption4all/fix/dns-txt-strict-match
fix(security): strict match on DNS TXT verification record
2 parents 01b5fce + 977921c commit ed780dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/server/services/dns-verification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function verifyDns(orgId: string): Promise<{
4040
try {
4141
const txtRecords = await resolve(record.domain, 'TXT');
4242
const flat = txtRecords.flat();
43-
const found = flat.some((txt) => txt.includes(record.txtRecord));
43+
const found = flat.some((txt) => txt === record.txtRecord);
4444

4545
if (found) {
4646
await db

0 commit comments

Comments
 (0)