This is an anonymised account of client work. Client names, domains, addresses, screenshots and other identifying details are omitted.
The review found that the login page, administrative screens and several server ports could be reached from outside the organisation. We approached the work as a combination of access control, application remediation and verification of staff workflows.
Assessment and agreed scope
Before testing, we agreed the targets, methods and timing with the client and obtained permission. Work was scheduled with the client's operations in mind.
We established what was externally reachable by checking exposed ports, URLs and administrative paths, then reviewed authentication and session handling. Application checks covered SQL injection, cross-site scripting, authentication and session weaknesses, and access to records or functions without the correct permissions.
The OWASP Top 10 provided a useful awareness framework for common web application risks. It was not treated as a claim of certification or a complete testing standard. Findings were reported with their severity, context and proposed corrective action.
Controls implemented
NETWORK
Reduce exposed services
We closed unnecessary public ports and removed direct public access to SSH and the database. The application remained available through HTTPS on the approved access route.
NETWORK
Use an allow-list and VPN
Firewall rules limited access to approved source addresses. Remote staff connected through the company VPN so their application requests arrived from an approved address.
APPLICATION
Add a web application firewall
A WAF in front of the application helped filter common attack traffic. It supplemented the code changes and access controls.
APPLICATION
Restrict administrative screens
Administrative functions used a narrower allow-list than general staff access, limiting where privileged operations could be reached.
IDENTITY
Require a second factor
Administrator and other privileged accounts used two-factor authentication, reducing the risk that a stolen password alone would grant access.
CODE
Address application findings
We addressed the application-level findings with safer query handling, output escaping and session protections. These measures reduced reliance on the network controls alone.
Verification
After the changes, we repeated the relevant external checks from an address outside the allow-list and confirmed that access to the protected services was blocked. From the approved VPN route, we checked that staff could still use the required workflows.
Application-level fixes also need to be retested through an authorised route. An outside connection being blocked does not, by itself, prove that an application-level issue has been fixed.
The client received a report connecting the findings with the changes and verification results. The result is evidence for the checks performed within the agreed scope, rather than a guarantee that every possible weakness has been eliminated.
Lessons
Basic access decisions matter: which services are exposed, where administrative functions can be reached and how privileged users authenticate. Combining these decisions with code fixes made the protection less dependent on any single control.
The work continues after the initial changes. Components need updates, account and access rules need review, and important workflows need to be checked when the environment changes. Our article on vulnerability management describes the maintenance cycle we use for WordPress and PHP sites.
Technical references
FROM PRACTICE TO SUPPORT
Cybersecurity at 創遊株式会社
We work exclusively by referral. To learn about our penetration testing work, agreed testing conditions and reporting, visit our service overview.
Cybersecurity services (Japanese)