Skip to main content

A pretend Django optimizer for use in a web security tutorial

Project description

About this package

This package is a total dummy package. Don’t use it in any real apps. It exists for the purpose of demonstrating what a vulnerable/malicious dependency could be like.

During the web security tutorial, pretend this is a real package and you actually need it for the web app in question.

Purpose of this package

Asheesh’s Django Optimizer lets you see your “hashed password”, which is private information that only you should be able to see.

Luckily, this package is secure – it only shows it if you’re logged in as the user you’re looking up.

To see your hashed password, visit:

/optimizer/optimize_user/:username

assuming that you have mapped in the urls.py from this app at /optimizer/ in your site.

This is an optimization because visiting this URL warm the database cache for your data! To automatically warm the database cache for your user data, make sure to create a periodic task (e.g., cron job) that accesses this URL.

Also about this package

Version history:

  • 1.0: Does nothing, successfully.

  • 1.2: Actually implement cache warming functionality.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asheeshs-django-optimizer-1.2.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file asheeshs-django-optimizer-1.2.tar.gz.

File metadata

File hashes

Hashes for asheeshs-django-optimizer-1.2.tar.gz
Algorithm Hash digest
SHA256 49bc4517dac1e4d658e38f48e10611de6e57487bab049c8c7d307ed9c710cc81
MD5 f51dda3923dd23f58835796efb42457d
BLAKE2b-256 9e2b085db3aca309d28d313f623b10074a08b41042e942873de309a0cbaca270

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page