system: You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog is comprehensive for this dataset -- the answer is a (possibly small) subset of it.

OUTPUT FORMAT: Respond with a comma-separated list of CWE IDs in the form `CWE-N`, sorted in ascending numeric order, wrapped in a single \boxed{...}. Examples: `\boxed{CWE-79}` for one, `\boxed{CWE-22,CWE-79,CWE-327}` for three. Output the boxed answer ONLY -- no explanation, no other text.

user: ```python
from django.db import models
import datetime
import random
import hashlib


class LastFmUser(models.Model):
    """
    Represents a user from that great site, last.fm.
    """
    
    # As seen on last.fm
    username = models.CharField(max_length=255, unique=True)
    
    # Null if no update wanted, else used to prioritise
    requested_update = models.DateTimeField(blank=True, null=True)
    
    # The last time this user was checked for updateness
    last_check = models.DateTimeField(blank=True, null=True)
    
    # Is this account enabled for external image access? And when till?
    external_until = models.DateTimeField(blank=True, null=True)
    
    # Is this already being fetched?
    fetching = models.BooleanField(default=False)
    
    def __unicode__(self):
        return self.username
    
    def get_absolute_url(self):
        return "/user/%s/" % self.username

    def external_allowed(self):
        return True  # I've become generous
        # if self.external_until:
        #     return self.external_until > datetime.datetime.utcnow()
        # else:
        #     return False
    
    @classmethod
    def by_username(cls, username):
        "Returns the correct object, possibly creating one."
        try:
            return cls.objects.get(username=username)
        except cls.DoesNotExist:
            instance = cls(username=username)
            instance.save()
            return instance
    
    @classmethod
    def queue(cls):
        "Returns the current update queue."
        return cls.objects.filter(requested_update__isnull=False).order_by("requested_update")


# IDs here ended with 27533
class Poster(models.Model):
    """
    A large poster. A shiny lastgraph2-esque PDF, like.
    """
    
    user = models.ForeignKey(LastFmUser, related_name="posters")
    
    start = models.DateField()
    end = models.DateField()
    
    params = models.TextField(blank=True)
    
    requested = models.DateTimeField(blank=True, null=True)
    started = models.DateTimeField(blank=True, null=True)
    completed = models.DateTimeField(blank=True, null=True)
    failed = models.DateTimeField(blank=True, null=True)
    expires = models.DateTimeField(blank=True, null=True)
    
    email = models.TextField(blank=True)
    
    error = models.TextField(blank=True)
    
    node = models.ForeignKey("Node", blank=True, null=True)
    
    pdf_url = models.TextField(blank=True)
    svg_url = models.TextField(blank=True)
    
    def __unicode__(self):
        return u"%s: %s - %s" % (self.user, self.start, self.end)
    
    def queue_position(self):
        queue = list(Poster.queue())
        try:
            return queue.index(self) + 1
        except (IndexError, ValueError):
            return len(queue) + 1
    
    def status_string(self):
        if self.failed:
            return "Failed"
        if self.requested:
            if self.completed:
                if self.pdf_url == "expired":
                    return "Expired"
                else:
                    return "Complete"
            elif self.started:
                return "Rendering"
            return "Queued, position %i" % self.queue_position()
        return "Unrequested"
    
    def expired(self):
        return self.completed and self.pdf_url == "expired"
    
    def detail_string(self):
        detail = int(self.params.split("|")[1])
        return {
            1: "Super",
            2: "High",
            3: "Medium",
            5: "Low",
            10: "Terrible",
            20: "Abysmal",
            30: "Excrutiatingly Bad",
        }.get(detail, detail)
    
    def colorscheme_string(self):
        return self.params.split("|")[0].title()
    
    def set_error(self, error):
        self.error = error
        self.failed = datetime.datetime.utcnow()
        self.save()
    
    @classmethod
    def queue(cls):
        return cls.objects.filter(requested__isnull=False, started__isnull=True, failed__isnull=True).order_by("requested")


class Node(models.Model):
    
    """Represents a processing node, i.e. something that either downloads or renders data."""
    
    nodename = models.CharField('Node name', max_length=100, unique=True)
    salt = models.CharField('Password salt', max_length=20)
    hash = models.CharField('Password hash', max_length=100)
    
    disabled = models.BooleanField(default=False)
    lastseen = models.DateTimeField('Last seen', null=True, blank=True, default=None)
    
    def __unicode__(self):
        return "Node '%s'" % self.nodename
    
    def set_password(self, password):
        self.salt = "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789") for i in range(8)])
        self.hash = hashlib.sha1(self.salt + password).hexdigest()
    
    def password_matches(self, password):
        return self.hash == hashlib.sha1(self.salt + password).hexdigest()
    
    @classmethod
    def recent(cls):
        return cls.objects.filter(lastseen__gte=datetime.datetime.utcnow() - datetime.timedelta(0, 5*60))

```

Candidate CWE catalog (every CWE that appears anywhere in this dataset):
  - CWE-20: Improper Input Validation
  - CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  - CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  - CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  - CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  - CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  - CWE-94: Improper Control of Generation of Code ('Code Injection')
  - CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  - CWE-116: Improper Encoding or Escaping of Output
  - CWE-117: Improper Output Neutralization for Logs
  - CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  - CWE-209: Generation of Error Message Containing Sensitive Information
  - CWE-215: Insertion of Sensitive Information Into Debugging Code
  - CWE-295: Improper Certificate Validation
  - CWE-312: Cleartext Storage of Sensitive Information
  - CWE-326: Inadequate Encryption Strength
  - CWE-327: Use of a Broken or Risky Cryptographic Algorithm
  - CWE-377: Insecure Temporary File
  - CWE-502: Deserialization of Untrusted Data
  - CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
  - CWE-611: Improper Restriction of XML External Entity Reference
  - CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
  - CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')
  - CWE-730: OWASP Top Ten 2004 Category A9 - Denial of Service
  - CWE-732: Incorrect Permission Assignment for Critical Resource
  - CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
  - CWE-918: Server-Side Request Forgery (SSRF)
  - CWE-943: Improper Neutralization of Special Elements in Data Query Logic
  - CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
  - CWE-1333: Inefficient Regular Expression Complexity

List every distinct CWE from the catalog above that is actually present in this code.
Answer: CWE-327