Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

Testing REST API Verification Emails Without Polluting Shared Inboxes

Verification emails look simple from the product side: user signs up, API sends a message, user clicks a link, account becomes active. On the backend side,…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 6 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

Verification emails look simple from the product side: user signs up, API sends a message, user clicks a link, account becomes active. On the backend side, that flow is where a lot of teams quietly prove the wrong thing. A message arrives, somebody marks the test green, and nobody checks whether the token, recipient isolation, and expiration rules actually matched the request that created them.



When I test an Authentication flow in a REST API, I want evidence tied to one run and one user only. A disposable email address is useful here, not because it is trendy, but because it removes cross-test ambiguity. If your suite has to generate disposable email aliases for staging checks, the important part is not the mailbox vendor. The important part is that each inbox belongs to one test case and expires quickly after it does its job.






Why verification email tests fail even when delivery works



The most common failure is not "mail never arrived." It is "mail arrived, but the test asserted almost nothing."



Shared inboxes create weird false positives. A worker retries a signup request, another test reuses the same alias, and now your assertion finds a valid-looking message that belongs to an earlier run. Teams often notice this only after a flaky build starts passing localy and failing in CI.



I also see API tests stop at HTTP status codes:





  • POST /users returned 201

  • the message queue accepted the job

  • one email appeared somewhere



That is not enough. A verification email test should prove that the token inside the message maps to the correct user row, was created under the expected enviroment, and will expire on the schedule your auth service promises. Delivery alone is just transport.



This is the same reason I like narrow, reproducible inbox checks in adjacent workflows. Articles on Docker-based approval email checks and isolated digest inboxes are not about signup verification specifically, but the isolation pattern carries over very well.






A backend-friendly flow for REST API verification checks



For a service-oriented stack, my preferred flow is pretty boring, which is exactly why it works:




  1. Create the test user through the public REST API.

  2. Assign a run-scoped inbox alias to that user before the message job is produced.

  3. Poll only that inbox for a short window.

  4. Extract the verification link or token from the email body.

  5. Confirm the token against the API and then verify database-side state changes.



Boring systems tend to be debuggable systems. If you let three workers share one inbox, or if you let your queue consumer reuse aliases like temp gamil com from old fixtures, the signal gets muddy real fast.



I prefer keeping the test record model explicit. Store a test_run_id, user_id, email_alias, verification_token_hash, and expires_at somewhere you can query safely in non-production. That gives you a straight line from the signup request to the outbound message and back to the confirmation endpoint.



If your system uses message brokers, do not make the broker your only source of truth. The broker can tell you a notification job existed. It cannot prove the final email body carried the current token instead of a stale one from a retry path.






What to assert in authentication email tests



A useful verification test usually checks five things:




  • exactly one relevant email arrived for the run

  • the recipient alias matches the user created by this test

  • the token or signed URL belongs to the latest verification record

  • the confirmation endpoint flips the account to verified exactly once

  • repeat clicks or replayed tokens fail in the documented way



That last point matters a lot. Verification flows should be idempotent where the user experience needs it, but not permissive where security does not. A second click may return a friendly "already verified" response, while the underlying token should no longer activate a different account. Teams sometimes describe this badly in docs, then implement it even worse.



The queue timing also needs attention. According to the 2024 State of API report from Postman, 74% of respondents said API integrations create significant operational complexity in their organizations, which feels very believable when you inspect auth-and-email glue code in mature systems (source). The lesson is not "email is hard." The lesson is that integration edges deserve first-class tests instead of hand-wavy smoke checks.






Schema and queue details that usually cause flake



Most flaky verification tests come from backend details, not front-end ones.



One issue is token storage. If the service writes a token row after publishing the email job, a fast worker can send a message before the durable state is ready for lookup. Another issue is cleanup. Old aliases and expired tokens pile up, and then a query that was supposed to be scoped starts matching more than one record. That is how somebody ends up searching notes for tempail mail and guessing which message was the "right" one.



I like to separate these concerns clearly:




  • token generation happens in the same transactional boundary as the user state that requires verification

  • outbound job payloads contain immutable identifiers, not ad-hoc lookup hints

  • inbox polling uses strict time windows and exact alias matches

  • replay tests run seperately from first-click success tests



None of this is glamorous, but it keeps the auth workflow legible six months later when the original implementation context is gone.






A short checklist for cleaner verification coverage



Before trusting a signup or magic-link test in your REST API, I would verify:




  • one test run maps to one inbox alias

  • verification state is queryable without scraping logs

  • token expiry is asserted, not assumed

  • repeated confirmations have a defined and tested outcome

  • cleanup jobs remove old aliases and stale verification records



If those five are true, your email test is probably measuring the system you think you built, not some accidental blend of queue timing and shared mailbox leftovers.






Q&A






Should I test verification emails through the public API or internal workers?



Start through the public API so the test covers the real contract. Add narrower worker tests only when you need faster diagnosis around queue or template behavior.






Is a disposable inbox always necessary?



Not always, but some kind of isolated inbox is. A shared mailbox can work for manual QA, though it is usually too noisy for reliable automated checks.






What is the most important assertion in this flow?



That the token consumed by the confirmation endpoint belongs to the exact user and request that created it. If that link is weak, the rest of the test can look healthy while the auth design is still broken.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

2 Cluster
2 Quellen
CVE-2026-93653 | Red Hat Enterprise Linux/Hardened Images Splash Backend tilingPatternFill denial of service (EUVD-2026-82931)
VulDB Updates vor 47 Min.
1 weitere Quelle
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Testing REST API Verification Emails Without Polluting Shared Inboxes

Thematisch verwandte Begriffe: Testing, REST, Verification, Emails · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag