https://github.com/dxw/advisories
WordPress security advisories, audit and assurance
https://github.com/dxw/advisories
govpress whippet-app
Last synced: 3 months ago
JSON representation
WordPress security advisories, audit and assurance
- Host: GitHub
- URL: https://github.com/dxw/advisories
- Owner: dxw
- Created: 2020-06-04T15:01:32.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-22T14:28:43.000Z (3 months ago)
- Last Synced: 2025-04-24T00:09:08.022Z (3 months ago)
- Topics: govpress, whippet-app
- Language: PHP
- Homepage: https://advisories.dxw.com
- Size: 6.25 MB
- Stars: 3
- Watchers: 13
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# dxw advisories
In the course of delivering and hosting WordPress websites for the public sector, we undertake a significant quantity of assurance work, to ensure that the sites we build and the plugins they rely on are secure.
We publish information about that work on this site.* [Production](https://security.dxw.com)
* [Staging](https://advisories.staging.dxw-govpress.dalmatian.dxw.net)Please use `develop/main` branches.
## Project management
- [Trello](https://trello.com/b/Yl4BLYGS/security-dxw-com)## Ghost Inspector tests
- [Production](https://app.ghostinspector.com/suites/62504446fe7446ec5add4df6)
- [Staging](https://app.ghostinspector.com/suites/623b40d4f29837f4fb8fd15e)## Analytics
- Analytics for dxw Advisories is handled via our Plausible account
## PHP version
This site builds on PHP 8.2 and deploys on PHP 8.3.
## Getting started
Run the setup (first-time run only):
```bash
script/setup
```Start the server:
```bash
script/server
```You can also run the server in detached mode (i.e. without any output to your console):
```bash
script/server -d
```Once the server has started, the following containers will be running:
* WordPress: http://localhost (username/password: `admin`/`admin`)
* MailCatcher: http://localhost:1080
* Beanstalk Console: http://localhost:2080
* MySQL: http://localhost:3306 (username/password: `root`/`foobar`)For a /bin/sh console running on the WordPress container, run `script/console`
For a MySQL console, run `bin/wp db cli`## Plugins & Themes
Use [Whippet](https://github.com/dxw/whippet) to manage plugins or external themes.
See the [theme README](wp-content/themes/dxw-security-2017/README.md) for more on how to develop the theme.
## API
The site exposes an JSON API of plugin inspections:
### Usage
```bash
curl -L https://security.dxw.com/wp-json/v1/inspections/{{plugin slug}}
```For example:
```bash
curl -L https://security.dxw.com/wp-json/v1/inspections/twitter-widget-pro
```### Example output
```json
[
{
"name": "Twitter Widget Pro",
"slug": "twitter-widget-pro",
"versions": "2.5.4",
"date": "2013-07-18T18:37:05+00:00",
"url": "http://localhost:8000/plugins/twitter-widget-pro/",
"result": "No issues found"
}
]
```
### API Unit TestsThe API code is packaged as a plugin.
To run the tests, run `vendor/bin/kahlan specs` from the plugin directory.
The first time you do this you'll need to `composer install` from the plugin
directory.