Skip to content
Misconfiguration Write-up Beginner

From Security Misconfiguration to Gaining Access of SMTP server

An SMTP server was left reachable with weak or missing authentication, letting the author send email through it while spoofing any sender name on the company's domain. This could let an attacker send convincing phishing mail that appears to come from the company.

Daniel V Follow

Published on medium.com

{{media:0}}

Daniel V, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 3 min read.

What the report shows

Daniel V. published this write-up in November 2018. It describes a security misconfiguration that let him send email through Amazon Simple Email Service (SES) using SMTP settings he had obtained, and to choose the sender name freely, for example [redacted] or [redacted]. The report frames the flaw as living in a testing environment, and argues that even a misconfiguration there can compromise a company.

The report opens with a summary of the outcome rather than a walkthrough:

I can send emails through any mail software (such as glock easymail) using SMTP settings provided by Amazon Simple email Service. With this, i can use any name such as '[redacted]' or '[redacted]'.

The text then moves into an explanation of what security misconfiguration is, and stops there. It does not give the hostname or endpoint where the SMTP credentials were found, the request or response that exposed them, the SES region, the SMTP username, the port, or any log or delivery result. It also gives no bounty amount, no severity rating and no confirmation that the issue was fixed. Everything below is limited to what the summary states.

Daniel V
Daniel V From the original on medium.com

Root cause

The report attributes the issue to a security misconfiguration and says he used SMTP settings provided by Amazon SES, in what it frames as a testing environment. SES issues SMTP credentials (a username and password) that any mail client can use to submit mail, so once those values are exposed, the holder can send through the service. The report does not say how the credentials were exposed, so the specific mistake (a public configuration file, a debug page, a repository, a default password) is not established here.

Impact

The stated impact is that he can send email using any name, such as [redacted] or [redacted] The stated impact is that he can use any sender name, including addresses that look like the company's own support or admin mailboxes. The report does not claim that the researcher could read mail, access other SES resources, or reach anything beyond sending. It also does not state whether SES sending limits, sandbox restrictions or domain verification constrained what he could actually deliver.

How this kind of bug works

Cloud mail services expose two interfaces: an API authenticated with access keys, and an SMTP interface authenticated with separate SMTP credentials derived from an IAM user. Both are bearer credentials: whoever holds them can submit mail as the account, subject to the identities and domains that have been verified in that account. When such credentials end up somewhere reachable, for example a staging server's environment file, a JavaScript bundle, a public repository, a backup archive or a misconfigured storage bucket, the exposure is silent. Nothing breaks, no alert fires, and the credentials usually stay valid until someone rotates them.

Testing environments are a common source because they are stood up quickly, often with production-like configuration, and are forgotten. The defence is to treat these credentials as secrets: keep them out of client-side code and public storage, scope them to a dedicated IAM user with the minimum sending permissions, restrict sending to verified identities, and rotate on any suspicion of exposure. Sending authorisation alone is not the whole story either; monitoring for unusual volume or recipient patterns catches abuse after the fact.

This class of bug is found by looking for secrets rather than by attacking an endpoint.

Recon signals include hosts with dev, staging, test or preview in the name, open directory listings, and JavaScript that references mail or cloud SDK configuration. Avoid sending to third parties, keep the volume to the minimum needed to demonstrate the issue, and redact the secret itself in the write-up.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What happened, in plain words

Daniel V. published this write-up in November 2018. It describes a security misconfiguration that let him send email through Amazon Simple Email Service (SES) using SMTP settings he had obtained, and to choose the sender name freely, for example [redacted] or [redacted]. The report frames the flaw as living in a testing environment, and argues that even a misconfiguration there can compromise a company.

The report opens with a summary of the outcome rather than a walkthrough:

I can send emails through any mail software (such as glock easymail) using SMTP settings provided by Amazon Simple email Service. With this, i can use any name such as '[redacted]' or '[redacted]'.

The text then moves into an explanation of what security misconfiguration is, and stops there. It does not give the hostname or endpoint where the SMTP credentials were found, the request or response that exposed them, the SES region, the SMTP username, the port, or any log or delivery result. It also gives no bounty amount, no severity rating and no confirmation that the issue was fixed. Everything below is limited to what the summary states.

Daniel V
Daniel V From the original on medium.com

Root cause

The report attributes the issue to a security misconfiguration and says he used SMTP settings provided by Amazon SES, in what it frames as a testing environment. SES issues SMTP credentials (a username and password) that any mail client can use to submit mail, so once those values are exposed, the holder can send through the service. The report does not say how the credentials were exposed, so the specific mistake (a public configuration file, a debug page, a repository, a default password) is not established here.

Impact

The stated impact is that he can send email using any name, such as [redacted] or [redacted] The stated impact is that he can use any sender name, including addresses that look like the company's own support or admin mailboxes. The report does not claim that the researcher could read mail, access other SES resources, or reach anything beyond sending. It also does not state whether SES sending limits, sandbox restrictions or domain verification constrained what he could actually deliver.

How this kind of bug works

Cloud mail services expose two interfaces: an API authenticated with access keys, and an SMTP interface authenticated with separate SMTP credentials derived from an IAM user. Both are bearer credentials: whoever holds them can submit mail as the account, subject to the identities and domains that have been verified in that account. When such credentials end up somewhere reachable, for example a staging server's environment file, a JavaScript bundle, a public repository, a backup archive or a misconfigured storage bucket, the exposure is silent. Nothing breaks, no alert fires, and the credentials usually stay valid until someone rotates them.

Testing environments are a common source because they are stood up quickly, often with production-like configuration, and are forgotten. The defence is to treat these credentials as secrets: keep them out of client-side code and public storage, scope them to a dedicated IAM user with the minimum sending permissions, restrict sending to verified identities, and rotate on any suspicion of exposure. Sending authorisation alone is not the whole story either; monitoring for unusual volume or recipient patterns catches abuse after the fact.

This class of bug is found by looking for secrets rather than by attacking an endpoint.

Recon signals include hosts with dev, staging, test or preview in the name, open directory listings, and JavaScript that references mail or cloud SDK configuration. Avoid sending to third parties, keep the volume to the minimum needed to demonstrate the issue, and redact the secret itself in the write-up.

Glossary

  • Security misconfiguration: a setting left in an unsafe state, such as a secret exposed where anyone can reach it.
  • SMTP: the standard protocol mail software uses to hand a message to a mail server for delivery.
  • SMTP settings: the server address, port, username and password a mail client needs to submit mail.
  • Amazon SES: Amazon Simple Email Service, a cloud service for sending email.
  • SMTP credentials: the username and password pair that authenticates a mail client to SES.
  • IAM user: an identity inside an AWS account that holds permissions and can own credentials.
  • Access keys: a key pair used to authenticate to a cloud API, separate from SMTP credentials.
  • Bearer credential: a secret that grants access to whoever holds it, without any further proof of identity.
  • Verified identity: an email address or domain the mail service has confirmed the account is allowed to send from.
  • Testing environment: a non-production copy of a system used for development or trials.
  • Staging: a pre-production environment that mirrors the live system.
  • Endpoint: a specific address on a server that accepts requests.
  • Request: a message a browser or tool sends to a server asking for something.
  • Response: what the server sends back.
  • Cookie: a small piece of data a site stores in the browser to remember state, such as a login session.
  • Token: a value that stands in for a credential, often short-lived.
  • Phishing: a message that impersonates a trusted party to trick the recipient into acting.
  • Least privilege: giving an identity only the permissions it actually needs.
  • Rotation: replacing a secret with a new one so the old value stops working.
  • Sandbox: a restricted mode of a service that only allows limited actions, such as sending to verified addresses.
  • False positive: a finding that looks real but is not, such as a revoked or placeholder credential.
  • Recon: the information-gathering phase before testing, mapping hosts and assets.
  • Source map: a file that maps compressed code back to its original source, sometimes exposing configuration.
  • CI configuration: the files that define an automated build and test pipeline, which can contain secrets.
  • Redact: to blank out sensitive values in a report so they are not published.

More by Daniel V

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.