WP Manifestindependent plugin directory

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/elseifab/idkollen/archive/refs/heads/develop.zip

On Packagist as elseif/idkollen:

composer require elseif/idkollen
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Tillägg för att underlätta integration IDkollen mot WordPress-konton för inloggning via BankID

WORK IN PROGRESS

Versioner

Inga releaser/versioner av detta tillägg finns ännu...

Utvecklingsmiljö

Roots Bedrock i repo elseifab/idkollen-dev används som utvecklingsmiljö för detta tillägg.

Tester

Automatiska tester görs via Travis här: https://travis-ci.org/elseifab/idkollen

PHPUnit

Obs! composer update före enhetstestning!

We run docker containers to unit tests in real WordPress (no mock). https://github.com/frozzare/docker-wptest https://github.com/wpup/test-suite Special thanks to Frozzare!

To initialize tests with docker, run: docker run --name mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d mysql:5.7

To run tests, in the plugin folder, eg: docker run -e WP_VERSION=latest --rm -v $(pwd):/opt --link mysql frozzare/wptest:7.2 vendor/bin/phpunit

PHPUnit testing with docker: https://youtu.be/9CEoapNrrSc

Releases

17 releases.

Tag
Published
0.3.3 latest
Aug 22, 2018 8 years ago
Aug 22, 2018 8 years ago
0.3
Aug 22, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
Aug 21, 2018 8 years ago
0.2
Aug 20, 2018 8 years ago
Aug 20, 2018 8 years ago
0.1
Aug 20, 2018 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

D+ grade

Security

IDkollen 0.3.3 · audited by WP Registry

High-severity findings.

1 high 2 medium
Audited release
0.3.3
Findings
3
Worst severity
high
Content hash
c19d401406031a913677e803…

Findings

  • high Unauthenticated REST callback writes arbitrary options via add_option

    missing_auth

    POST /wp-json/elseifab/idkollen/v1/callback uses permission_callback that always returns true. Callback::boot reads JSON itemId and idkToken and calls add_option($itemId, $token) with no authentication or itemId allow-list. An unauthenticated attacker can create new options (any name that does not already exist), planting attacker-controlled values that other code may later trust, and can complete or spoof seal-service callbacks.

    src/Auth/Callback.php:7-26

    Recommendation

    Authenticate callbacks (shared secret/HMAC from IDkollen), restrict itemId to values previously created by Init (uniqid idkollen*), and avoid add_option with raw client input.

  • medium Unauthenticated REST item endpoint returns get_option values

    information_disclosure

    GET /item/(?P<item>[a-zA-Z0-9-]+) has no permission_callback and returns get_option($item). Option names with underscores are excluded by the regex, but names like siteurl, home, blogname, and plugin keys matching the pattern are disclosed to anonymous clients. Also used to poll BankID tokens.

    src/Auth/Item.php:7-11

    Recommendation

    Require a capability or signed token; only allow reading keys previously created for the auth wait flow.

  • medium Admin settings save API key without nonce (CSRF)

    csrf

    AdminMenu::render() writes ApiKeyManager::set from $_REQUEST['apiKey'] (and timeout/debug) whenever the settings page loads with those parameters. The submenu requires manage_options, but there is no check_admin_referer. A CSRF request from an admin's browser can overwrite the IDkollen API key.

    src/Settings/AdminMenu.php:13-27

    Recommendation

    Process saves only on POST with check_admin_referer and capability re-check.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.